]> git.lyx.org Git - features.git/commit
Fix bug #8089: Handle spaces at the end of the stream
authorVincent van Ravesteijn <vfr@lyx.org>
Wed, 2 May 2012 11:41:09 +0000 (13:41 +0200)
committerVincent van Ravesteijn <vfr@lyx.org>
Wed, 2 May 2012 12:41:08 +0000 (14:41 +0200)
commit26dcfcd34374f86562af56dfe5f858d10ea587db
treec859149c36834cc153ca9106456799cad7bd46b4
parent1ef930c05826340d7497d6994338f6d63772de5f
Fix bug #8089: Handle spaces at the end of the stream

If the stream is good (i.e. there are still tokens) and we expect an
argument, we call getArg(). However, if there are only spaces, the stream
suddenly isn't good anymore after 'skipSpaces' and we would get an error
when calling 'getChar'. Therefore we have to check whether the stream is
still good.
src/mathed/MathParser.cpp