[LyX/master] Amend 14b108fc222ef9e

Juergen Spitzmueller spitz at lyx.org
Mon Dec 5 06:25:15 UTC 2022


commit c715db4ae852e84ebc5f80d20127d12c2ee867ce
Author: Juergen Spitzmueller <spitz at lyx.org>
Date:   Mon Dec 5 08:20:25 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 70e67a6..6a23abf 100644
--- a/src/mathed/InsetMathMacro.cpp
+++ b/src/mathed/InsetMathMacro.cpp
@@ -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 {


More information about the lyx-cvs mailing list