From: Enrico Forestieri Date: Sun, 26 May 2019 07:27:46 +0000 (+0200) Subject: Partial fix for bug #11586 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=ccd19517b2ec91521c830052701388e9faae0718;p=features.git 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. --- 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();