From 09cdaf8cc8a1df507d9dab473a424295915286f1 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Sun, 24 Mar 2019 17:28:01 +0100 Subject: [PATCH] Fix bug #11526 Correctly categorize a textmode symbol in mathed. --- src/Encoding.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.39.5