- if (il.lyxtype() == type) {
- FuncRequest temp_cmd(LFUN_INSET_DISSOLVE);
- return InsetCollapsable::getStatus(cur, temp_cmd, flag);
+ if (il.lyxtype() == type
+ || (il.name() == DocumentClass::plainInsetLayout().name()
+ && type == InsetLyXType::CHARSTYLE)) {
+ FuncRequest temp_cmd(cmd.action());
+ return InsetCollapsible::getStatus(cur, temp_cmd, flag);