]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetFloat.cpp
Wrap figures can also have subfloats. I simply forgot that when implementing subfloat...
[features.git] / src / insets / InsetFloat.cpp
index a98d52170f57a932c5e43ea2bcb0f72da698e8f0..6b19e8cc835e7704b4c969d4402aa02545936a9b 100644 (file)
@@ -195,7 +195,8 @@ void InsetFloat::updateLabels(ParIterator const & it)
        string const saveflt = cnts.current_float();
        bool const savesubflt = cnts.isSubfloat();
 
-       bool const subflt = it.innerInsetOfType(FLOAT_CODE);
+       bool const subflt = (it.innerInsetOfType(FLOAT_CODE)
+                            || it.innerInsetOfType(WRAP_CODE));
        // floats can only embed subfloats of their own kind
        if (subflt)
                params_.type = saveflt;