Fix bug #6125: Float positioning dialog enables invalid options for subfloats.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30877 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2009-08-06 22:42:42 +00:00
parent b9e188c397
commit 8b237b49cd

View File

@ -181,6 +181,13 @@ bool InsetFloat::getStatus(Cursor & cur, FuncRequest const & cmd,
flag.setEnabled(true);
return true;
case LFUN_INSET_SETTINGS:
if (InsetCollapsable::getStatus(cur, cmd, flag)) {
flag.setEnabled(flag.enabled() && !params_.subfloat);
return true;
} else
return false;
default:
return InsetCollapsable::getStatus(cur, cmd, flag);
}