http://bugzilla.lyx.org/show_bug.cgi?id=675
The former one also disabled cross-reference insertion.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17008
a592a061-630c-0410-9148-
cb99ea01b6c8
status.enabled(false);
return true;
+ case LFUN_DIALOG_SHOW_NEW_INSET:
case LFUN_INSET_INSERT: {
string const name = cmd.getArg(0);
- if (name == "graphics"
- || name == "include") {
+ if (name == "float"
+ || name == "graphics"
+ || name == "include"
+ || name == "wrap"
+ ) {
status.enabled(false);
return true;
}
}
case LFUN_DIALOG_SHOW_NEW_INSET:
- enable = cur.inset().lyxCode() != InsetBase::ERT_CODE
- && cur.inset().lyxCode() != InsetBase::CAPTION_CODE;
+ enable = cur.inset().lyxCode() != InsetBase::ERT_CODE;
+ if (cur.inset().lyxCode() == InsetBase::CAPTION_CODE) {
+ FuncStatus flag;
+ if (cur.inset().getStatus(cur, cmd, flag))
+ return flag;
+ }
break;
case LFUN_DIALOG_UPDATE: {