summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorIvan Timofeev <timofeev.i.s@gmail.com>2011-12-02 17:21:15 +0400
committerIvan Timofeev <timofeev.i.s@gmail.com>2011-12-02 17:23:02 +0400
commit2292904f85ab6c360c30914e8621e516f8ae1388 (patch)
tree2e61f7c45a756a2d27713b1215a262f5e3231431 /starmath
parentc5ca69b5d61f1d28f6069346c426c2fd3402a5f0 (diff)
visual formula editor: fix insertion of "-"
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/cursor.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/starmath/source/cursor.cxx b/starmath/source/cursor.cxx
index 1b66fa13207b..f1eeb0d46fe3 100644
--- a/starmath/source/cursor.cxx
+++ b/starmath/source/cursor.cxx
@@ -1040,7 +1040,7 @@ void SmCursor::InsertElement(SmFormulaElement element){
SmToken token;
token.eType = TMINUS;
token.cMathChar = MS_MINUS;
- token.nGroup = MS_PLUS;
+ token.nGroup = TGUNOPER | TGSUM;
token.nLevel = 5;
token.aText.AssignAscii("-");
pNewNode = new SmMathSymbolNode(token);