From 44d911432c99e4a993aaff1d89fac298e33d08c5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Fri, 17 Aug 2001 16:10:51 +0000 Subject: [PATCH] correct mixed up eqnarray <-> eqnarray* and numbered <-> unnumbered git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2538 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/math_parser.C | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/mathed/math_parser.C b/src/mathed/math_parser.C index c9f4317749..be6ed5a8ea 100644 --- a/src/mathed/math_parser.C +++ b/src/mathed/math_parser.C @@ -569,7 +569,7 @@ MathMatrixInset * Parser::parse_normal() string const name = getArg('{', '}'); if (name == "equation" || name == "equation*") { - curr_num_ = stared(name); + curr_num_ = !stared(name); curr_label_.erase(); MathMatrixInset * p = new MathMatrixInset(LM_OT_EQUATION); parse_into(p->cell(0), FLAG_END); @@ -580,21 +580,21 @@ MathMatrixInset * Parser::parse_normal() if (name == "eqnarray" || name == "eqnarray*") { MathMatrixInset * p = new MathMatrixInset(LM_OT_EQNARRAY); - parse_lines(p, stared(name), true); + parse_lines(p, !stared(name), true); return p; } if (name == "align" || name == "align*") { MathMatrixInset * p = new MathMatrixInset(LM_OT_ALIGN); p->halign(getArg('{', '}')); - parse_lines(p, stared(name), true); + parse_lines(p, !stared(name), true); return p; } if (name == "alignat" || name == "alignat*") { MathMatrixInset * p = new MathMatrixInset(LM_OT_ALIGNAT); p->halign(getArg('{', '}')); - parse_lines(p, stared(name), true); + parse_lines(p, !stared(name), true); return p; } @@ -620,10 +620,10 @@ void Parser::parse_into(MathArray & array, unsigned flags) while (good()) { Token const & t = getToken(); - - lyxerr << "t: " << t << " flags: " << flags << "'\n"; + + //lyxerr << "t: " << t << " flags: " << flags << "'\n"; //array.dump(lyxerr); - lyxerr << "\n"; + //lyxerr << "\n"; if (flags & FLAG_ITEM) { flags &= ~FLAG_ITEM; -- 2.39.2