]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathParser.cpp
Don't create nested text-in-math environments.
[lyx.git] / src / mathed / MathParser.cpp
index 7456fce668c5800f1b42fb41496ceeffdeb0fd84..aa71b268e036a454d88822eeeab86234ff8db870 100644 (file)
@@ -910,7 +910,8 @@ bool Parser::parse1(InsetMathGrid & grid, unsigned flags,
                else if (t.cat() == catOther) {
                        char_type c = t.character();
                        if (c < 0x80 || mode_ & Parse::VERBATIM
-                           || !(mode_ & Parse::USETEXT)) {
+                           || !(mode_ & Parse::USETEXT)
+                           || mode == InsetMath::TEXT_MODE) {
                                cell->push_back(MathAtom(new InsetMathChar(c)));
                        } else {
                                MathAtom at = createInsetMath("text");