]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetCaption.cpp
- InsetTabular.cpp: floats must not be inserted to tables, fixes #6844
[features.git] / src / insets / InsetCaption.cpp
index 10471841c727ece08e26e91f484decc2d93c54b3..c8b774c0bcfde857b7e3adb58ef39b6d0b80dc10 100644 (file)
@@ -176,12 +176,14 @@ bool InsetCaption::insetAllowed(InsetCode code) const
 {
        switch (code) {
        // code that is not allowed in a caption
-       case FLOAT_CODE:
-       case TABULAR_CODE:
-       case WRAP_CODE:
        case CAPTION_CODE:
+       case FLOAT_CODE:
+       case FOOT_CODE:
        case NEWPAGE_CODE:
+       case MARGIN_CODE:
        case MATHMACRO_CODE:
+       case TABULAR_CODE:
+       case WRAP_CODE:
                return false;
        default:
                return InsetText::insetAllowed(code);