From: Jürgen Spitzmüller Date: Mon, 5 Nov 2007 07:15:57 +0000 (+0000) Subject: * src/mathed/MathParser.cpp (getChar): X-Git-Tag: 1.6.10~7485 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=3cafb856;p=features.git * src/mathed/MathParser.cpp (getChar): - empty return if the char is not good() (fix bug 4318). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21425 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/MathParser.cpp b/src/mathed/MathParser.cpp index 26cf14f497..5b811fcc98 100644 --- a/src/mathed/MathParser.cpp +++ b/src/mathed/MathParser.cpp @@ -463,8 +463,11 @@ bool Parser::good() const char_type Parser::getChar() { - if (!good()) + if (!good()) { error("The input stream is not well..."); + putback(); + return char_type(); + } return tokens_[pos_++].character(); }