[Libreoffice-commits] .: starmath/source

Ivan Timofeev ivantimofeev at kemper.freedesktop.org
Fri Dec 2 05:24:14 PST 2011


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

New commits:
commit 2292904f85ab6c360c30914e8621e516f8ae1388
Author: Ivan Timofeev <timofeev.i.s at gmail.com>
Date:   Fri Dec 2 17:21:15 2011 +0400

    visual formula editor: fix insertion of "-"

diff --git a/starmath/source/cursor.cxx b/starmath/source/cursor.cxx
index 1b66fa1..f1eeb0d 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);


More information about the Libreoffice-commits mailing list