summaryrefslogtreecommitdiff
path: root/starmath/source/parse.cxx
diff options
context:
space:
mode:
authorFrédéric Wang <fred.wang@free.fr>2013-07-04 20:21:06 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-07-04 20:21:55 +0100
commit5d63514c6eddcd61a319c994202c7689f60ebf0a (patch)
tree7db8a47a6cf2b54af29649ee729824811bb1b6b8 /starmath/source/parse.cxx
parent2429a89cf354c1af992a0ed5afad0b326b9d634a (diff)
fdo#66575 - MathML export: fix errors with newline, binom and stack.
Change-Id: I6833140aaf3fcfc47b81f7d324af88843de00834
Diffstat (limited to 'starmath/source/parse.cxx')
-rw-r--r--starmath/source/parse.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/starmath/source/parse.cxx b/starmath/source/parse.cxx
index e5325919f125..aa3a66f09d6e 100644
--- a/starmath/source/parse.cxx
+++ b/starmath/source/parse.cxx
@@ -1072,7 +1072,11 @@ void SmParser::Line()
//this is to avoid a formula tree without any caret
//positions, in visual formula editor.
if(ExpressionArray.empty())
- ExpressionArray.push_back(new SmExpressionNode(m_aCurToken));
+ {
+ SmToken aTok = SmToken();
+ aTok.eType = TNEWLINE;
+ ExpressionArray.push_back(new SmExpressionNode(aTok));
+ }
SmStructureNode *pSNode = new SmLineNode(m_aCurToken);
pSNode->SetSubNodes(ExpressionArray);