* do not try to dissolve a macro template inset (avoids a crash)
* disable inset-dissolve when an argument is given
* when triggered by the AtPoint mechanism, make sur to dissolve the
right inset.
Fixes bug #12562.
break;
}
case LFUN_INSET_DISSOLVE:
- if (!asHullInset()) {
+ if (cmd.argument().empty() && !asHullInset() && !asMacroTemplate()) {
+ // we have been triggered via the AtPoint mechanism
+ if (cur.nextInset() == this)
+ cur.push(*this);
cur.recordUndoInset();
cur.pullArg();
}
}
case LFUN_INSET_DISSOLVE:
- flag.setEnabled(!asHullInset());
+ flag.setEnabled(cmd.argument().empty() && !asHullInset() && !asMacroTemplate());
break;
case LFUN_PASTE: {