summaryrefslogtreecommitdiffstats
path: root/starmath
diff options
context:
space:
mode:
authorIvan Timofeev <timofeev.i.s@gmail.com>2011-12-02 20:54:38 +0400
committerIvan Timofeev <timofeev.i.s@gmail.com>2011-12-02 20:56:21 +0400
commitc1baeb25ad3a5d6afb59f9329a634f742a7a9e5a (patch)
tree341b3bf3aa3688b17f56d27ecf9086ac46150012 /starmath
parentn#719989/97: Connector shape fixes. (diff)
downloadcore-c1baeb25ad3a5d6afb59f9329a634f742a7a9e5a.tar.gz
core-c1baeb25ad3a5d6afb59f9329a634f742a7a9e5a.zip
visual formula editor: fix insertion of symbols from catalog
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/cursor.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/starmath/source/cursor.cxx b/starmath/source/cursor.cxx
index f1eeb0d46fe3..2f50532ee7cd 100644
--- a/starmath/source/cursor.cxx
+++ b/starmath/source/cursor.cxx
@@ -1113,7 +1113,6 @@ void SmCursor::InsertSpecial(XubString aString) {
Delete();
aString = comphelper::string::strip(aString, ' ');
- aString = comphelper::string::stripStart(aString, '%');
//Create instance of special node
SmToken token;
@@ -1121,7 +1120,7 @@ void SmCursor::InsertSpecial(XubString aString) {
token.cMathChar = '\0';
token.nGroup = 0;
token.nLevel = 5;
- token.aText = aString; //Don't know if leading "%" should be removed
+ token.aText = aString;
SmSpecialNode* pSpecial = new SmSpecialNode(token);
//Prepare the special node