visual formula editor: fix insertion of symbols from catalog
This commit is contained in:
@@ -1113,7 +1113,6 @@ void SmCursor::InsertSpecial(XubString aString) {
|
|||||||
Delete();
|
Delete();
|
||||||
|
|
||||||
aString = comphelper::string::strip(aString, ' ');
|
aString = comphelper::string::strip(aString, ' ');
|
||||||
aString = comphelper::string::stripStart(aString, '%');
|
|
||||||
|
|
||||||
//Create instance of special node
|
//Create instance of special node
|
||||||
SmToken token;
|
SmToken token;
|
||||||
@@ -1121,7 +1120,7 @@ void SmCursor::InsertSpecial(XubString aString) {
|
|||||||
token.cMathChar = '\0';
|
token.cMathChar = '\0';
|
||||||
token.nGroup = 0;
|
token.nGroup = 0;
|
||||||
token.nLevel = 5;
|
token.nLevel = 5;
|
||||||
token.aText = aString; //Don't know if leading "%" should be removed
|
token.aText = aString;
|
||||||
SmSpecialNode* pSpecial = new SmSpecialNode(token);
|
SmSpecialNode* pSpecial = new SmSpecialNode(token);
|
||||||
|
|
||||||
//Prepare the special node
|
//Prepare the special node
|
||||||
|
Reference in New Issue
Block a user