From 1ef930c05826340d7497d6994338f6d63772de5f Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Wed, 2 May 2012 13:37:32 +0200 Subject: [PATCH] MathParser: Do not rewind the stream if we can't read from it If the stream is not good, we don't need to 'putback', because we didn't read anything yet. If we now do rewind the stream, we are asking for problems as in bug #8089. This was introduced in [3cafb856\lyxgit] to fix bug #4318. --- src/mathed/MathParser.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/mathed/MathParser.cpp b/src/mathed/MathParser.cpp index b3f1bca76b..ad804e1f84 100644 --- a/src/mathed/MathParser.cpp +++ b/src/mathed/MathParser.cpp @@ -536,7 +536,6 @@ char_type Parser::getChar() { if (!good()) { error("The input stream is not well..."); - putback(); return 0; } return tokens_[pos_++].character(); -- 2.39.2