diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2017-03-04 06:55:24 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2017-03-06 04:39:40 +0000 |
commit | dbb3123e7a1dbd6d64009f0b101fef7173a6870e (patch) | |
tree | 01f4db61b9569b0de779d648e30c521e26bfc6e0 /starmath | |
parent | 29d2f85e198d5b844d5a10562723a65173cf22ea (diff) |
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@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/parse.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/starmath/source/parse.cxx b/starmath/source/parse.cxx index 4bb9ff79be08..a2ba86971b11 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() |