]> git.lyx.org Git - features.git/blobdiff - src/mathed/MathParser.cpp
Fix bug #8089: Handle spaces at the end of the stream
[features.git] / src / mathed / MathParser.cpp
index ad804e1f84bb3f9af1ec17337ac90b60a67f01be..df7169432048ca6252524d09f0f084f8ffcb59bf 100644 (file)
@@ -544,9 +544,12 @@ char_type Parser::getChar()
 
 docstring Parser::getArg(char_type left, char_type right)
 {
+       docstring result;
        skipSpaces();
 
-       docstring result;
+       if (!good())
+               return result;
+
        char_type c = getChar();
 
        if (c != left)