[Libreoffice-commits] .: starmath/source

Ivan Timofeev ivantimofeev at kemper.freedesktop.org
Fri Dec 2 08:56:57 PST 2011


 starmath/source/cursor.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit c1baeb25ad3a5d6afb59f9329a634f742a7a9e5a
Author: Ivan Timofeev <timofeev.i.s at gmail.com>
Date:   Fri Dec 2 20:54:38 2011 +0400

    visual formula editor: fix insertion of symbols from catalog

diff --git a/starmath/source/cursor.cxx b/starmath/source/cursor.cxx
index f1eeb0d..2f50532 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


More information about the Libreoffice-commits mailing list