]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/formula.C
fix typo that put too many include paths for most people
[lyx.git] / src / mathed / formula.C
index 3b7d102fe8a43f897420e41a8db94712b17cdf24..a58b4911dc221abd1c6213b01b2234922703de2c 100644 (file)
@@ -278,16 +278,17 @@ Inset * InsetFormula::clone(Buffer const &, bool) const
 }
 
 
-void InsetFormula::write(Buffer const * buf, ostream & os) const
+void InsetFormula::write(Buffer const *, ostream & os) const
 {
        os << "Formula ";
-       latex(buf, os, false, false);
+       WriteStream wi(os, false, false);
+       par_->write(wi);
 }
 
 
-int InsetFormula::latex(Buffer const *, ostream & os, bool fragil, bool) const
+int InsetFormula::latex(Buffer const *, ostream & os, bool fragile, bool) const
 {
-       WriteStream wi(os, fragil);
+       WriteStream wi(os, fragile, true);
        par_->write(wi);
        return wi.line();
 }