]> git.lyx.org Git - features.git/commitdiff
* correct parsing of unknown math environment (fixes http://bugzilla.lyx.org/show_bug...
authorStefan Schimanski <sts@lyx.org>
Fri, 22 Feb 2008 20:04:38 +0000 (20:04 +0000)
committerStefan Schimanski <sts@lyx.org>
Fri, 22 Feb 2008 20:04:38 +0000 (20:04 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23139 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/MathParser.cpp

index 31a34ddf6d70100585622bb34c0a26b21a41a4a8..e14c925d6ef9e26867ddf932b4e6b6b182dcfbce 100644 (file)
@@ -1266,7 +1266,7 @@ void Parser::parse1(InsetMathGrid & grid, unsigned flags,
                                               << to_utf8(l->inset) << "'." << endl;
                                        // create generic environment inset
                                        cell->push_back(MathAtom(new InsetMathEnv(name)));
-                                       parse(cell->back().nucleus()->cell(0), FLAG_ITEM, mode);
+                                       parse(cell->back().nucleus()->cell(0), FLAG_END, mode);
                                }
                        }
 
@@ -1276,7 +1276,7 @@ void Parser::parse1(InsetMathGrid & grid, unsigned flags,
                                        << "'" << endl;
                                // create generic environment inset
                                cell->push_back(MathAtom(new InsetMathEnv(name)));
-                               parse(cell->back().nucleus()->cell(0), FLAG_ITEM, mode);
+                               parse(cell->back().nucleus()->cell(0), FLAG_END, mode);
                        }
                }