commit 263e1045e26156cab577385fca29e10bc2e82f9e
Author: Juergen Spitzmueller <sp...@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 {
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to