]> git.lyx.org Git - features.git/commitdiff
Amend 14b108fc222ef9e
authorJuergen Spitzmueller <spitz@lyx.org>
Mon, 5 Dec 2022 07:20:25 +0000 (08:20 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Mon, 5 Dec 2022 07:20:25 +0000 (08:20 +0100)
src/mathed/InsetMathMacro.cpp

index 70e67a6588af46ccf5c114fbb44c3dfd6cb88bc6..6a23abf4a1877581fe3674fbeecd449f9077c697 100644 (file)
@@ -1153,8 +1153,10 @@ void InsetMathMacro::write(TeXMathStream & 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) || os.output() == TeXMathStream::wsSearchAdv)
                        name_recoded += c;
                else {