From ac58a5060e296001b7f42b8413a41ec305bfa3aa Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Fri, 2 Dec 2022 11:21:15 +0100 Subject: [PATCH] Revert e500dc19c15334 More general fix is upcoming. --- src/mathed/InsetMathHull.cpp | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) 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(); } -- 2.39.5