From: André Pönitz Date: Wed, 5 Jun 2002 07:54:26 +0000 (+0000) Subject: remove bogus parser warning X-Git-Tag: 1.6.10~19131 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=b27f7bdaf9b1ea0dd1a670e3d74a9356f4efde51;p=features.git remove bogus parser warning git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4337 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/math_parser.C b/src/mathed/math_parser.C index b64b760272..804263fedc 100644 --- a/src/mathed/math_parser.C +++ b/src/mathed/math_parser.C @@ -492,7 +492,7 @@ void Parser::dump() const lyxerr << " <#> "; lyxerr << tokens_[i]; } - lyxerr << "\n"; + lyxerr << " pos: " << pos_ << "\n"; } @@ -780,16 +780,16 @@ void Parser::parse_into1(MathGridInset & grid, unsigned flags, bool numbered) MathAtom at(new MathHullInset(LM_OT_SIMPLE)); parse_into2(at, FLAG_SIMPLE, false); cell->push_back(at); - } else { - dump(); - lyxerr << "something strange in the parser\n"; - break; } - - if (flags & FLAG_SIMPLE) { + else if (flags & FLAG_SIMPLE) { // this is the end of the formula return; } + else { + dump(); + lyxerr << "something strange in the parser\n"; + break; + } } else if (t.cat() == catLetter)