]> 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 e789f08f15b25215be7981f3d7322921153ec13a..85e3366316e013a83615e673da86703952e82725 100644 (file)
 
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
 #include "insetfootlike.h"
 #include "lyxfont.h"
 #include "buffer.h"
@@ -35,8 +31,8 @@ InsetFootlike::InsetFootlike(BufferParams const & bp)
 }
 
 
-InsetFootlike::InsetFootlike(InsetFootlike const & in, bool same_id)
-       : InsetCollapsable(in, same_id)
+InsetFootlike::InsetFootlike(InsetFootlike const & in)
+       : InsetCollapsable(in)
 {
        LyXFont font(LyXFont::ALL_SANE);
        font.decSize();
@@ -53,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);
 }