From c1baeb25ad3a5d6afb59f9329a634f742a7a9e5a Mon Sep 17 00:00:00 2001 From: Ivan Timofeev Date: Fri, 2 Dec 2011 20:54:38 +0400 Subject: visual formula editor: fix insertion of symbols from catalog --- starmath/source/cursor.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'starmath') 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 -- cgit