mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-13 06:20:28 +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();
|
cur.undispatched();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case LFUN_INSET_DISSOLVE:
|
||||||
|
if (!asHullInset()) {
|
||||||
|
recordUndoInset(cur, Undo::ATOMIC);
|
||||||
|
cur.pullArg();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
InsetMath::doDispatch(cur, cmd);
|
InsetMath::doDispatch(cur, cmd);
|
||||||
@ -1112,6 +1118,10 @@ bool InsetMathNest::getStatus(Cursor & cur, FuncRequest const & cmd,
|
|||||||
flag.enabled(false);
|
flag.enabled(false);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case LFUN_INSET_DISSOLVE:
|
||||||
|
flag.enabled(!asHullInset());
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
ret = false;
|
ret = false;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user