InsetLayout const & il = getLayout();
InsetLayout::InsetLyXType const type =
translateLyXType(to_utf8(cmd.argument()));
- if (il.lyxtype() == type) {
+ if (il.lyxtype() == type
+ || (il.name() == DocumentClass::plainInsetLayout().name()
+ && type == InsetLayout::CHARSTYLE)) {
FuncRequest temp_cmd(LFUN_INSET_DISSOLVE);
return InsetCollapsible::getStatus(cur, temp_cmd, flag);
} else
InsetLayout::InsetLyXType const type =
translateLyXType(to_utf8(cmd.argument()));
- if (il.lyxtype() == type) {
+ if (il.lyxtype() == type
+ || (il.name() == DocumentClass::plainInsetLayout().name()
+ && type == InsetLayout::CHARSTYLE)) {
FuncRequest temp_cmd(LFUN_INSET_DISSOLVE);
InsetCollapsible::doDispatch(cur, temp_cmd);
} else