From: Enrico Forestieri Date: Sat, 18 May 2019 09:36:07 +0000 (+0200) Subject: Fix bug #10499 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=ffdb2d456e97ff61493f3d51527a5c268826627a;p=features.git Fix bug #10499 The array environment has to be explicitly parsed in math mode. --- diff --git a/src/mathed/MathParser.cpp b/src/mathed/MathParser.cpp index 436f022e25..0fe6e0f416 100644 --- a/src/mathed/MathParser.cpp +++ b/src/mathed/MathParser.cpp @@ -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))); - parse2(cell->back(), FLAG_END, mode, false); + parse2(cell->back(), FLAG_END, InsetMath::MATH_MODE, false); } else if (name == "tabular") {