From: André Pönitz Date: Fri, 17 Aug 2001 16:10:51 +0000 (+0000) Subject: correct mixed up eqnarray <-> eqnarray* and numbered <-> unnumbered X-Git-Tag: 1.6.10~20807 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=44d911432c99e4a993aaff1d89fac298e33d08c5;p=features.git 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 --- 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;