X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetfootlike.C;h=fcbe711ba726fd024de2623296a59d577c1a6703;hb=4a5b7a5952ad2381fcdf4830511293e184c7c5a1;hp=ea4da1ef0f447e3fdc97266c98bbe687f03b9732;hpb=3ce727041d6eef7a30ea58d8469ac8042eb20409;p=lyx.git diff --git a/src/insets/insetfootlike.C b/src/insets/insetfootlike.C index ea4da1ef0f..fcbe711ba7 100644 --- a/src/insets/insetfootlike.C +++ b/src/insets/insetfootlike.C @@ -21,6 +21,9 @@ #include "support/LOstream.h" +using std::ostream; + + InsetFootlike::InsetFootlike() : InsetCollapsable() { @@ -29,13 +32,21 @@ InsetFootlike::InsetFootlike() font.decSize(); font.setColor(LColor::collapsable); setLabelFont(font); -#if 0 - setAutoCollapse(false); -#endif } -void InsetFootlike::write(Buffer const * buf, std::ostream & os) const +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"; InsetCollapsable::write(buf, os);