]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insettheorem.C
changelogs
[lyx.git] / src / insets / insettheorem.C
index 7d93135b7f39269576123b416dfc47d0efc61b0d..92e1f7789fd04867b51138ae802e29e247350b13 100644 (file)
@@ -56,14 +56,14 @@ void InsetTheorem::write(Buffer const * buf, ostream & os) const
 }
 
 
-InsetBase * InsetTheorem::clone() const
+auto_ptr<InsetBase> InsetTheorem::doClone() const
 {
 #ifdef WITH_WARNINGS
 #warning Is this inset used? If YES this is WRONG!!! (Jug)
 #endif
-       InsetTheorem * result = new InsetTheorem;
+       auto_ptr<InsetTheorem> result(new InsetTheorem);
+       result->setCollapsed(!isOpen());
 
-       result->collapsed_ = collapsed_;
        return result;
 }
 
@@ -89,7 +89,7 @@ string const InsetTheorem::editMessage() const
 
 
 int InsetTheorem::latex(Buffer const * buf, ostream & os,
-                       LatexRunParams const & runparams) const
+                       OutputParams const & runparams) const
 {
        os << "\\begin{theorem}%\n";