]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetfootlike.C
add parOwner to Inset, optimize LyXText::workWidth, fix memory corruption with lots...
[lyx.git] / src / insets / insetfootlike.C
index 75dd3ad5816a80593c1d1ecda4f33a5515bd2541..edfd20dafbfde25e8841302eeef8e640de810b2e 100644 (file)
@@ -29,7 +29,17 @@ InsetFootlike::InsetFootlike()
        font.decSize();
        font.setColor(LColor::collapsable);
        setLabelFont(font);
-       setAutoCollapse(false);
+}
+
+
+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);
 }
 
 
@@ -42,7 +52,8 @@ void InsetFootlike::write(Buffer const * buf, std::ostream & os) const
 
 bool InsetFootlike::insetAllowed(Inset::Code code) const
 {
-       if ((code == Inset::FOOT_CODE) || (code == Inset::MARGIN_CODE))
+       if ((code == Inset::FOOT_CODE) || (code == Inset::MARGIN_CODE)
+           || (code ==Inset::FLOAT_CODE))
                return false;
        return InsetCollapsable::insetAllowed(code);
 }