From f2029fb38621803923e28bf8a6b8e45e4e32670d Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Wed, 17 Apr 2019 16:03:13 +0200 Subject: [PATCH] Fix bug #11552 Do not insert a brace inset when we know that LyX wrote the braces. This commit amends [503f7db2/lyxgit]. --- 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..f0d1d7c535 100644 --- a/src/mathed/MathParser.cpp +++ b/src/mathed/MathParser.cpp @@ -946,7 +946,7 @@ bool Parser::parse1(InsetMathGrid & grid, unsigned flags, parse(ar, FLAG_BRACE_LAST, mode); // do not create a BraceInset if they were written by LyX // this helps to keep the annoyance of "a choose b" to a minimum - if (ar.size() == 1 && ar[0]->extraBraces()) + if (ar.size() == 1 && (ar[0]->extraBraces() || ar[0]->asBraceInset())) cell->append(ar); else cell->push_back(MathAtom(new InsetMathBrace(ar))); -- 2.39.2