}
-Inset * InsetFormula::clone(Buffer const &) const
+Inset * InsetFormula::clone(Buffer const &, bool) const
{
return new InsetFormula(*this);
}
updateLocal(bv);
break;
-
- case LFUN_DELETE_LINE_FORWARD:
- bv->lockedInsetStoreUndo(Undo::DELETE);
- mathcursor->DelLine();
- updateLocal(bv);
- break;
-
case LFUN_MATH_NUMBER:
{
//lyxerr << "toggling all numbers\n";
}
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);