diff options
Diffstat (limited to 'starmath/source/node.cxx')
-rw-r--r-- | starmath/source/node.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx index 2e631e207f5a..d8832a583d9e 100644 --- a/starmath/source/node.cxx +++ b/starmath/source/node.cxx @@ -802,8 +802,8 @@ void SmExpressionNode::CreateTextFromNode(OUString &rText) pNode->CreateTextFromNode(rText); //Just a bit of foo to make unary +asd -asd +-asd -+asd look nice if (pNode->GetType() == NMATH) - if ((nSize != 2) || ((rText[rText.getLength()-1] != '+') && - (rText[rText.getLength()-1] != '-'))) + if ((nSize != 2) || + ( !rText.endsWith("+") && !rText.endsWith("-") )) rText += " "; } |