From 13dcd3f8e29352d6234b4ee93b16e4aab645cadb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Fri, 13 Jul 2001 12:43:24 +0000 Subject: [PATCH] generate unnumbered eqnarray when mutating from inline math git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2237 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/formula.C | 4 +--- src/mathed/math_matrixinset.C | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/mathed/formula.C b/src/mathed/formula.C index 00c040a9db..dc88673874 100644 --- a/src/mathed/formula.C +++ b/src/mathed/formula.C @@ -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); diff --git a/src/mathed/math_matrixinset.C b/src/mathed/math_matrixinset.C index bed9f943b1..c3267d0294 100644 --- a/src/mathed/math_matrixinset.C +++ b/src/mathed/math_matrixinset.C @@ -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; -- 2.39.5