]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetfootlike.C
Don't remove cell selections after fontchange.
[lyx.git] / src / insets / insetfootlike.C
index ea4da1ef0f447e3fdc97266c98bbe687f03b9732..fcbe711ba726fd024de2623296a59d577c1a6703 100644 (file)
@@ -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);