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.
This commit is contained in:
Enrico Forestieri 2019-05-26 09:27:46 +02:00
parent c83765163f
commit bda3b799c5

View File

@ -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();