]> git.lyx.org Git - features.git/commitdiff
Fix bug #11526
authorEnrico Forestieri <forenr@lyx.org>
Sun, 24 Mar 2019 16:28:01 +0000 (17:28 +0100)
committerEnrico Forestieri <forenr@lyx.org>
Sun, 24 Mar 2019 21:19:05 +0000 (22:19 +0100)
Correctly categorize a textmode symbol in mathed.

(cherry picked from commit c2af2cfd94dc3ff83b0e8cfaef4bfaf8768b6d08)

src/Encoding.cpp
status.23x

index 96e35ecbb707e04e75fee87cb30211fbbdc8173e..35a93b40ecaa80b2fe346028fdfa2a2ef35225c1 100644 (file)
@@ -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;
 }
index 29f9d20addf102cbcd784ee7ab594437de351d46..bfd25c10360066145c4547c0065888ea07bb1ca9 100644 (file)
@@ -102,6 +102,9 @@ What's new
 - Correctly add the branch name suffix when the stem of the filename
   contains a dot (bug 11490).
 
+- Load required packages to correctly typeset unicode symbols entered
+  in math mode (bug 11526).
+
 
 * USER INTERFACE