[LyX/master] Revert e500dc19c15334
Juergen Spitzmueller
spitz at lyx.org
Fri Dec 2 09:29:37 UTC 2022
commit ac58a5060e296001b7f42b8413a41ec305bfa3aa
Author: Juergen Spitzmueller <spitz at lyx.org>
Date: Fri Dec 2 11:21:15 2022 +0100
Revert e500dc19c15334
More general fix is upcoming.
---
src/mathed/InsetMathHull.cpp | 15 +--------------
1 files changed, 1 insertions(+), 14 deletions(-)
diff --git a/src/mathed/InsetMathHull.cpp b/src/mathed/InsetMathHull.cpp
index f5dce80..0ab06d2 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();
}
More information about the lyx-cvs
mailing list