On Thu, Jul 04, 2002 at 06:43:50AM +0200, Ulrich Günther wrote: > I would be very glad if there was a temporary patch.
Try the attached and tell me if it works. Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson)
Index: math_parser.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/math_parser.C,v retrieving revision 1.197.2.1 diff -u -p -r1.197.2.1 math_parser.C --- math_parser.C 28 May 2002 22:52:57 -0000 1.197.2.1 +++ math_parser.C 3 Jul 2002 07:38:23 -0000 @@ -932,10 +932,6 @@ void Parser::parse_into(MathArray & arra { parse_into1(array, flags, code); // remove 'unnecessary' braces: - if (array.size() == 1 && array.back()->asBraceInset()) { - lyxerr << "extra braces removed\n"; - array = array.back()->asBraceInset()->cell(0); - } } @@ -1012,20 +1008,10 @@ void Parser::parse_into1(MathArray & arr else if (t.cat() == catBegin) { MathArray ar; parse_into(ar, FLAG_BRACE_LAST); -#ifndef WITH_WARNINGS -#warning this might be wrong in general! -#endif - // ignore braces around simple items - if ((ar.size() == 1 && !ar.front()->needsBraces() - || (ar.size() == 2 && !ar.front()->needsBraces() - && ar.back()->asScriptInset())) - || (ar.size() == 0 && array.size() == 0)) - { - array.push_back(ar); - } else { - array.push_back(MathAtom(new MathBraceInset)); - array.back()->cell(0).swap(ar); - } + if (ar.size() == 1 && ar.front()->asBraceInset()) + ar = ar.front()->asBraceInset()->cell(0); + array.push_back(MathAtom(new MathBraceInset)); + array.back()->cell(0).swap(ar); } else if (t.cat() == catEnd) {