From b27f7bdaf9b1ea0dd1a670e3d74a9356f4efde51 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Wed, 5 Jun 2002 07:54:26 +0000 Subject: [PATCH] remove bogus parser warning git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4337 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 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) -- 2.39.2