}
-InsetBase * InsetTheorem::clone() const
+auto_ptr<InsetBase> InsetTheorem::clone() 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;
}
int InsetTheorem::latex(Buffer const * buf, ostream & os,
- LatexRunParams const & runparams) const
+ OutputParams const & runparams) const
{
os << "\\begin{theorem}%\n";