]> git.lyx.org Git - features.git/commitdiff
Don't create nested text-in-math environments.
authorEnrico Forestieri <forenr@lyx.org>
Sun, 5 Apr 2009 23:34:22 +0000 (23:34 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Sun, 5 Apr 2009 23:34:22 +0000 (23:34 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29118 a592a061-630c-0410-9148-cb99ea01b6c8

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");