[Libreoffice-commits] .: starmath/source

Ivan Timofeev ivantimofeev at kemper.freedesktop.org
Thu Mar 22 09:59:10 PDT 2012


 starmath/source/parse.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit f52138deee9e129d0566f06d1d2138b6b159d16a
Author: Ivan Timofeev <timofeev.i.s at gmail.com>
Date:   Thu Mar 22 10:03:03 2012 +0400

    fdo#41739: Math: do not skip "newline" on error

diff --git a/starmath/source/parse.cxx b/starmath/source/parse.cxx
index b386cf3..e5c1ff4 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();
 }
 
 


More information about the Libreoffice-commits mailing list