mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-24 09:04:48 +00:00
InsetBox.cpp: fix bug #7849 (with help from Jürgen)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39956 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
ffa373d27b
commit
a517afc28e
@ -212,10 +212,13 @@ bool InsetBox::getStatus(Cursor & cur, FuncRequest const & cmd,
|
|||||||
switch (cmd.action()) {
|
switch (cmd.action()) {
|
||||||
|
|
||||||
case LFUN_INSET_MODIFY:
|
case LFUN_INSET_MODIFY:
|
||||||
if (cmd.getArg(0) == "changetype")
|
if (cmd.getArg(0) == "changetype") {
|
||||||
flag.setOnOff(cmd.getArg(1) == params_.type);
|
string const type = cmd.getArg(1);
|
||||||
flag.setEnabled(true);
|
flag.setOnOff(type == params_.type);
|
||||||
return true;
|
flag.setEnabled(!params_.inner_box || type != "Framed");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return InsetCollapsable::getStatus(cur, cmd, flag);
|
||||||
|
|
||||||
case LFUN_INSET_DIALOG_UPDATE:
|
case LFUN_INSET_DIALOG_UPDATE:
|
||||||
flag.setEnabled(true);
|
flag.setEnabled(true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user