mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
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.
This commit is contained in:
parent
e90cd4180e
commit
1ef930c058
@ -536,7 +536,6 @@ char_type Parser::getChar()
|
||||
{
|
||||
if (!good()) {
|
||||
error("The input stream is not well...");
|
||||
putback();
|
||||
return 0;
|
||||
}
|
||||
return tokens_[pos_++].character();
|
||||
|
Loading…
Reference in New Issue
Block a user