From 263e1045e26156cab577385fca29e10bc2e82f9e Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Mon, 5 Dec 2022 08:23:50 +0100 Subject: [PATCH] Amend 14b108fc222ef9e --- src/mathed/InsetMathMacro.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mathed/InsetMathMacro.cpp b/src/mathed/InsetMathMacro.cpp index d9a307fd70..65f677e48c 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 {