diff --git a/src/mathed/formula.C b/src/mathed/formula.C index b6d8e4613a..b3a6489903 100644 --- a/src/mathed/formula.C +++ b/src/mathed/formula.C @@ -262,14 +262,21 @@ InsetFormula::localDispatch(BufferView * bv, kb_action action, } case LFUN_MATH_DISPLAY: + { + int x; + int y; + mathcursor->GetPos(x, y); 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); + mathcursor->normalize(); updateLocal(bv); break; + } default: result = InsetFormulaBase::localDispatch(bv, action, arg);