X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetfootlike.C;h=edfd20dafbfde25e8841302eeef8e640de810b2e;hb=b00e1315fe4da81da67f63d70e455cda167afab9;hp=75dd3ad5816a80593c1d1ecda4f33a5515bd2541;hpb=b15e539c6868321078523e60d2c1a210c639a4eb;p=lyx.git diff --git a/src/insets/insetfootlike.C b/src/insets/insetfootlike.C index 75dd3ad581..edfd20dafb 100644 --- a/src/insets/insetfootlike.C +++ b/src/insets/insetfootlike.C @@ -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); }