]> git.lyx.org Git - features.git/commitdiff
cosmetics
authorAndré Pönitz <poenitz@gmx.net>
Tue, 13 Nov 2001 15:29:45 +0000 (15:29 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Tue, 13 Nov 2001 15:29:45 +0000 (15:29 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3023 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/formula.C
src/mathed/formulabase.C

index 39b119586b4c0e81b0b677c3c4571465be0dbda2..ce8e4d5bc000fa466e073c9bf520927944d46686 100644 (file)
@@ -463,8 +463,8 @@ InsetFormula::localDispatch(BufferView * bv, kb_action action,
 
                case LFUN_MATH_DISPLAY:
                {
-                       int x;
-                       int y;
+                       int x = 0;
+                       int y = 0;
                        mathcursor->getPos(x, y);
                        if (mat()->getType() == LM_OT_SIMPLE)
                                mat()->mutate(LM_OT_EQUATION);
@@ -491,6 +491,7 @@ InsetFormula::localDispatch(BufferView * bv, kb_action action,
                        mat()->addCol(mat()->ncols());
                        mathcursor->normalize();
                        updateLocal(bv, true);
+                       break;
                }
 
                default:
index 02ecf16837ac4a1324e24eb7e7b7d3e6784ee415..41bb90666b4cccf31576a2dd79f9683986f084c5 100644 (file)
@@ -418,10 +418,10 @@ InsetFormulaBase::localDispatch(BufferView * bv, kb_action action,
                bv->updateInset(this, true);
                break;
 
-               //    case LFUN_GETXY:
-               //      sprintf(dispatch_buffer, "%d %d",);
-               //      dispatch_result = dispatch_buffer;
-               //      break;
+       //    case LFUN_GETXY:
+       //      sprintf(dispatch_buffer, "%d %d",);
+       //      dispatch_result = dispatch_buffer;
+       //      break;
        case LFUN_SETXY: {
                lyxerr << "LFUN_SETXY broken!\n";
                int x = 0;
@@ -611,12 +611,7 @@ InsetFormulaBase::localDispatch(BufferView * bv, kb_action action,
        }
 
        lyx::Assert(mathcursor);
-       //mathcursor->normalize();
 
-       if (//was_macro != mathcursor->inMacroMode() &&
-                               action >= 0 && action != LFUN_BACKSPACE) 
-               updateLocal(bv, true);
-       
        if (mathcursor->selection() || was_selection)
                toggleInsetSelection(bv);