]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetfootlike.C
prevent crash when inserting minipage in table cell,
[lyx.git] / src / insets / insetfootlike.C
index 604f8465b915438989a2ae15f4d7ec2eb3b64855..85e3366316e013a83615e673da86703952e82725 100644 (file)
@@ -10,7 +10,6 @@
 
 #include <config.h>
 
-
 #include "insetfootlike.h"
 #include "lyxfont.h"
 #include "buffer.h"
@@ -43,17 +42,6 @@ InsetFootlike::InsetFootlike(InsetFootlike const & in)
 }
 
 
-// InsetFootlike::InsetFootlike(InsetFootlike const & in, bool same_id)
-//     : InsetCollapsable(in, same_id)
-// {
-//     LyXFont font(LyXFont::ALL_SANE);
-//     font.decSize();
-//     font.decSize();
-//     font.setColor(LColor::collapsable);
-//     setLabelFont(font);
-// }
-
-
 void InsetFootlike::write(Buffer const * buf, ostream & os) const
 {
        os << getInsetName() << "\n";
@@ -61,10 +49,10 @@ void InsetFootlike::write(Buffer const * buf, ostream & os) const
 }
 
 
-bool InsetFootlike::insetAllowed(Inset::Code code) const
+bool InsetFootlike::insetAllowed(InsetOld::Code code) const
 {
-       if ((code == Inset::FOOT_CODE) || (code == Inset::MARGIN_CODE)
-           || (code == Inset::FLOAT_CODE))
+       if (code == InsetOld::FOOT_CODE || code == InsetOld::MARGIN_CODE
+           || code == InsetOld::FLOAT_CODE)
                return false;
        return InsetCollapsable::insetAllowed(code);
 }