summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorIvan Timofeev <timofeev.i.s@gmail.com>2012-03-22 10:03:03 +0400
committerIvan Timofeev <timofeev.i.s@gmail.com>2012-03-22 20:58:26 +0400
commitf52138deee9e129d0566f06d1d2138b6b159d16a (patch)
tree5fa22dccdc8cc2fbbcfe081ed18f47523e2b0828 /starmath
parentcb9e45382f2c36ac9e746eab3f03b37515935530 (diff)
fdo#41739: Math: do not skip "newline" on error
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/parse.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/starmath/source/parse.cxx b/starmath/source/parse.cxx
index b386cf36fbab..e5c1ff4c3eab 100644
--- a/starmath/source/parse.cxx
+++ b/starmath/source/parse.cxx
@@ -2424,7 +2424,9 @@ void SmParser::Error(SmParseError eError)
AddError(eError, pSNode);
- NextToken();
+ // Even if the newline token is unexpected, do not skip it. (fdo#41739)
+ if (m_aCurToken.eType != TNEWLINE)
+ NextToken();
}