]> git.lyx.org Git - features.git/commitdiff
generate unnumbered eqnarray when mutating from inline math
authorAndré Pönitz <poenitz@gmx.net>
Fri, 13 Jul 2001 12:43:24 +0000 (12:43 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Fri, 13 Jul 2001 12:43:24 +0000 (12:43 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2237 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/formula.C
src/mathed/math_matrixinset.C

index 00c040a9db6e891e48c42dcceb275c763d22192b..dc8867387418674f022e6a4401c9df9e6f15330b 100644 (file)
@@ -268,10 +268,8 @@ InsetFormula::localDispatch(BufferView * bv, kb_action action,
                        int x;
                        int y;
                        mathcursor->GetPos(x, y);
-                       if (par()->GetType() == LM_OT_SIMPLE) {
+                       if (par()->GetType() == LM_OT_SIMPLE)
                                par()->mutate(LM_OT_EQUATION);
-                               par()->numbered(0, false);
-                       }
                        else
                                par()->mutate(LM_OT_SIMPLE);
                        mathcursor->SetPos(x, y);
index bed9f943b1438bc1b43c9e84a377248e963f7037..c3267d029470c0f093980ad6addfe4c875fb4a42 100644 (file)
@@ -454,7 +454,7 @@ void MathMatrixInset::mutate(short newtype)
        switch (GetType()) {
                case LM_OT_SIMPLE:
                        SetType(LM_OT_EQUATION);
-                       numbered(false);
+                       numbered(0, false);
                        mutate(newtype);
                        break;