]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetminipage.C
prevent crash when inserting minipage in table cell,
[lyx.git] / src / insets / insetminipage.C
index c87d4beca7ccd68690405dad970eb0e6cc4317ce..7800b273abf176b22cfb31bc4e26fe057eb5dff1 100644 (file)
@@ -276,9 +276,9 @@ int InsetMinipage::latex(Buffer const * buf, ostream & os,
 }
 
 
-bool InsetMinipage::insetAllowed(Inset::Code code) const
+bool InsetMinipage::insetAllowed(InsetOld::Code code) const
 {
-       if (code == Inset::FLOAT_CODE || code == Inset::MARGIN_CODE)
+       if (code == InsetOld::FLOAT_CODE || code == InsetOld::MARGIN_CODE)
                return false;
 
        return InsetCollapsable::insetAllowed(code);