]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insettheorem.C
prevent crash when inserting minipage in table cell,
[lyx.git] / src / insets / insettheorem.C
index c6358e2cc3274e78d850e2f2d96f724cedabcec3..ad02764ea8277da4b5fc928ec2fdc922f5e62320 100644 (file)
@@ -53,7 +53,7 @@ void InsetTheorem::write(Buffer const * buf, ostream & os) const
 }
 
 
-Inset * InsetTheorem::clone(Buffer const &, bool) const
+InsetBase * InsetTheorem::clone() const
 {
 #ifdef WITH_WARNINGS
 #warning Is this inset used? If YES this is WRONG!!! (Jug)
@@ -71,12 +71,12 @@ string const InsetTheorem::editMessage() const
 }
 
 
-int InsetTheorem::latex(Buffer const * buf,
-                       ostream & os, bool fragile, bool fp) const
+int InsetTheorem::latex(Buffer const * buf, ostream & os,
+                       LatexRunParams const & runparams) const
 {
        os << "\\begin{theorem}%\n";
 
-       int i = inset.latex(buf, os, fragile, fp);
+       int i = inset.latex(buf, os, runparams);
        os << "\\end{theorem}%\n";
 
        return i + 2;