]> git.lyx.org Git - features.git/commitdiff
Fix bug #10499
authorEnrico Forestieri <forenr@lyx.org>
Sat, 18 May 2019 09:36:07 +0000 (11:36 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Sat, 18 May 2019 09:36:07 +0000 (11:36 +0200)
The array environment has to be explicitly parsed in math mode.

src/mathed/MathParser.cpp

index 436f022e2523b5dbf32b7377035ff61f2a3095b3..0fe6e0f416776409622d53086f583f65b9f2f8cf 100644 (file)
@@ -1604,7 +1604,7 @@ bool Parser::parse1(InsetMathGrid & grid, unsigned flags,
                                docstring const halign = parse_verbatim_item();
                                cell->push_back(MathAtom(new InsetMathArray(buf, name,
                                        InsetMathGrid::guessColumns(halign), 1, (char)valign[0], halign)));
                                docstring const halign = parse_verbatim_item();
                                cell->push_back(MathAtom(new InsetMathArray(buf, name,
                                        InsetMathGrid::guessColumns(halign), 1, (char)valign[0], halign)));
-                               parse2(cell->back(), FLAG_END, mode, false);
+                               parse2(cell->back(), FLAG_END, InsetMath::MATH_MODE, false);
                        }
 
                        else if (name == "tabular") {
                        }
 
                        else if (name == "tabular") {