FuncStatus & flag) const
{
switch (cmd.action()) {
+ case LFUN_INSET_SPLIT:
case LFUN_INSET_DISSOLVE:
if (!cmd.argument().empty()) {
InsetLayout const & il = getLayout();
if (il.lyxtype() == type
|| (il.name() == DocumentClass::plainInsetLayout().name()
&& type == InsetLyXType::CHARSTYLE)) {
- FuncRequest temp_cmd(LFUN_INSET_DISSOLVE);
+ FuncRequest temp_cmd(cmd.action());
return InsetCollapsible::getStatus(cur, temp_cmd, flag);
} else
return false;
void InsetFlex::doDispatch(Cursor & cur, FuncRequest & cmd)
{
switch (cmd.action()) {
+ case LFUN_INSET_SPLIT:
case LFUN_INSET_DISSOLVE:
if (!cmd.argument().empty()) {
InsetLayout const & il = getLayout();
if (il.lyxtype() == type
|| (il.name() == DocumentClass::plainInsetLayout().name()
&& type == InsetLyXType::CHARSTYLE)) {
- FuncRequest temp_cmd(LFUN_INSET_DISSOLVE);
+ FuncRequest temp_cmd(cmd.action());
InsetCollapsible::doDispatch(cur, temp_cmd);
} else
cur.undispatched();