]> git.lyx.org Git - features.git/commitdiff
Revert e500dc19c15334
authorJuergen Spitzmueller <spitz@lyx.org>
Fri, 2 Dec 2022 10:21:15 +0000 (11:21 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Fri, 2 Dec 2022 10:21:15 +0000 (11:21 +0100)
More general fix is upcoming.

src/mathed/InsetMathHull.cpp

index f5dce8088492f6f4a3cb502b43af37ceb93f7405..0ab06d27be34854c2272b19bb2b2f8fb7778371b 100644 (file)
@@ -709,20 +709,7 @@ static docstring latexString(InsetMathHull const & inset)
        otexrowstream ots(ls);
        TeXMathStream wi(ots, false, true, TeXMathStream::wsPreview, encoding);
        inset.write(wi);
-       docstring const s = ls.str();
-       docstring res;
-       for (char_type c : s) {
-           if (encoding->encodable(c))
-                   res += c;
-           else {
-                   // indicate the encoding error by a boxed '?'
-                   res += "{\\fboxsep=1pt\\fbox{?}}";
-                   LYXERR0("Uncodable character" << " '"
-                           << c
-                           << "'");
-           }
-       }
-       return res;
+       return ls.str();
 }