From 1a286c7910d8856c55a5266e73a9b6e87a8b5b98 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Sat, 18 May 2019 11:36:07 +0200 Subject: [PATCH] Fix bug #10499 The array environment has to be explicitly parsed in math mode. --- src/mathed/MathParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") {