From ccd19517b2ec91521c830052701388e9faae0718 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Sun, 26 May 2019 09:27:46 +0200 Subject: [PATCH] Partial fix for bug #11586 Do not replace a latex command with the corresponding symbol in the unicodesymbols file unless it can be encoded in the document encoding. --- src/mathed/MathParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mathed/MathParser.cpp b/src/mathed/MathParser.cpp index 0fe6e0f416..3449cff5ac 100644 --- a/src/mathed/MathParser.cpp +++ b/src/mathed/MathParser.cpp @@ -2081,7 +2081,7 @@ bool Parser::parse1(InsetMathGrid & grid, unsigned flags, Encodings::MATH_CMD | Encodings::TEXT_CMD, is_combining, termination); } - if (c) { + if (c && buf->params().encoding().encodable(c)) { if (termination) { if (nextToken().cat() == catBegin) { getToken(); -- 2.39.5