[Libreoffice-commits] core.git: starmath/source

Takeshi Abe tabe at fixedpoint.jp
Mon Mar 6 04:40:14 UTC 2017


 starmath/source/parse.cxx |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

New commits:
commit dbb3123e7a1dbd6d64009f0b101fef7173a6870e
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date:   Sat Mar 4 06:55:24 2017 +0900

    starmath: Push next token to escape only in a valid case
    
    Change-Id: I935e7d2992a93ff451bcc5689f2dc59fe7afff40
    Reviewed-on: https://gerrit.libreoffice.org/34875
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Takeshi Abe <tabe at fixedpoint.jp>

diff --git a/starmath/source/parse.cxx b/starmath/source/parse.cxx
index 4bb9ff7..a2ba869 100644
--- a/starmath/source/parse.cxx
+++ b/starmath/source/parse.cxx
@@ -1548,14 +1548,12 @@ void SmParser::DoEscape()
         case TRLINE :
         case TLDLINE :
         case TRDLINE :
+            m_aNodeStack.push_front(o3tl::make_unique<SmMathSymbolNode>(m_aCurToken));
+            NextToken();
             break;
         default:
             Error(SmParseError::UnexpectedToken);
     }
-
-    m_aNodeStack.push_front(o3tl::make_unique<SmMathSymbolNode>(m_aCurToken));
-
-    NextToken();
 }
 
 void SmParser::DoOperator()


More information about the Libreoffice-commits mailing list