mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
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:
parent
d172c3d4b4
commit
739e3c8df3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user