Allow dissolution of insets inside mathed

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20692 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Martin Vermeer 2007-10-03 10:24:37 +00:00
parent d172c3d4b4
commit 739e3c8df3

View File

@ -1003,6 +1003,12 @@ goto_char_backwards:
cur.undispatched();
break;
}
case LFUN_INSET_DISSOLVE:
if (!asHullInset()) {
recordUndoInset(cur, Undo::ATOMIC);
cur.pullArg();
}
break;
default:
InsetMath::doDispatch(cur, cmd);
@ -1112,6 +1118,10 @@ bool InsetMathNest::getStatus(Cursor & cur, FuncRequest const & cmd,
flag.enabled(false);
break;
case LFUN_INSET_DISSOLVE:
flag.enabled(!asHullInset());
break;
default:
ret = false;
break;