From: Enrico Forestieri Date: Sun, 24 Mar 2019 16:28:01 +0000 (+0100) Subject: Fix bug #11526 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=09cdaf8cc8a1df507d9dab473a424295915286f1;p=features.git Fix bug #11526 Correctly categorize a textmode symbol in mathed. --- diff --git a/src/Encoding.cpp b/src/Encoding.cpp index 148ce0b195..750a2ba3cd 100644 --- a/src/Encoding.cpp +++ b/src/Encoding.cpp @@ -306,10 +306,11 @@ bool Encodings::latexMathChar(char_type c, bool mathmode, if (!encoding || command.empty()) { command = it->second.textcommand(); needsTermination = !it->second.textnotermination(); - addTextCmd(c); } if (mathmode) addMathSym(c); + else + addTextCmd(c); } return use_math; }