[LyX/2.3.x] Amend 14b108fc222ef9e
Juergen Spitzmueller
spitz at lyx.org
Mon Dec 5 06:29:11 UTC 2022
commit 263e1045e26156cab577385fca29e10bc2e82f9e
Author: Juergen Spitzmueller <spitz at lyx.org>
Date: Mon Dec 5 08:23:50 2022 +0100
Amend 14b108fc222ef9e
---
src/mathed/InsetMathMacro.cpp | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/mathed/InsetMathMacro.cpp b/src/mathed/InsetMathMacro.cpp
index d9a307f..65f677e 100644
--- a/src/mathed/InsetMathMacro.cpp
+++ b/src/mathed/InsetMathMacro.cpp
@@ -1081,8 +1081,10 @@ void InsetMathMacro::write(WriteStream & os) const
docstring name_recoded;
docstring uncodable;
for (char_type c : name_in) {
- if (!os.encoding())
- break;
+ if (!os.encoding()) {
+ name_recoded += c;
+ continue;
+ }
if (os.encoding()->encodable(c))
name_recoded += c;
else {
More information about the lyx-cvs
mailing list