From: Juergen Spitzmueller Date: Fri, 2 Dec 2022 10:21:15 +0000 (+0100) Subject: Revert e500dc19c15334 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=ac58a5060e296001b7f42b8413a41ec305bfa3aa;p=features.git Revert e500dc19c15334 More general fix is upcoming. --- diff --git a/src/mathed/InsetMathHull.cpp b/src/mathed/InsetMathHull.cpp index f5dce80884..0ab06d27be 100644 --- a/src/mathed/InsetMathHull.cpp +++ b/src/mathed/InsetMathHull.cpp @@ -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(); }