]> git.lyx.org Git - features.git/commit
MathParser: Do not rewind the stream if we can't read from it
authorVincent van Ravesteijn <vfr@lyx.org>
Wed, 2 May 2012 11:37:32 +0000 (13:37 +0200)
committerVincent van Ravesteijn <vfr@lyx.org>
Wed, 2 May 2012 12:40:14 +0000 (14:40 +0200)
commit1ef930c05826340d7497d6994338f6d63772de5f
tree624f56860d3160776dfcd197f1552a2c8666f158
parente90cd4180e0ee2a23a25f08fa97c9cee0d2557f8
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