]> git.lyx.org Git - features.git/commitdiff
Fix bug #6125: Float positioning dialog enables invalid options for subfloats.
authorVincent van Ravesteijn <vfr@lyx.org>
Thu, 6 Aug 2009 22:42:42 +0000 (22:42 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Thu, 6 Aug 2009 22:42:42 +0000 (22:42 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30877 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetFloat.cpp

index 98e4cbd707e3f25e2436840242a39587bb83458d..bbda84a7296c5bae36454c6ea33190c431f59bec 100644 (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);
        }