diff options
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/cursor.cxx | 2 | ||||
-rw-r--r-- | starmath/source/node.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/starmath/source/cursor.cxx b/starmath/source/cursor.cxx index 72ba885992d8..1b66fa13207b 100644 --- a/starmath/source/cursor.cxx +++ b/starmath/source/cursor.cxx @@ -1112,7 +1112,7 @@ void SmCursor::InsertSpecial(XubString aString) { BeginEdit(); Delete(); - aString.EraseLeadingAndTrailingChars(); + aString = comphelper::string::strip(aString, ' '); aString = comphelper::string::stripStart(aString, '%'); //Create instance of special node diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx index 156537ae8112..e7c6ebcf89de 100644 --- a/starmath/source/node.cxx +++ b/starmath/source/node.cxx @@ -1677,7 +1677,7 @@ void SmBraceNode::CreateTextFromNode(String &rText) { String aStr; GetSubNode(0)->CreateTextFromNode(aStr); - aStr.EraseLeadingAndTrailingChars(); + aStr = comphelper::string::strip(aStr, ' '); aStr = comphelper::string::stripStart(aStr, '\\'); if (aStr.Len()) { @@ -1700,7 +1700,7 @@ void SmBraceNode::CreateTextFromNode(String &rText) { String aStr; GetSubNode(2)->CreateTextFromNode(aStr); - aStr.EraseLeadingAndTrailingChars(); + aStr = comphelper::string:strip(aStr, ' '); aStr = comphelper::string::stripStart(aStr, '\\'); if (aStr.Len()) { |