]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetFormulaMacro.cpp
Another assertion that got transformed in 1b1f8dd2
[lyx.git] / src / mathed / InsetFormulaMacro.cpp
index d43fa0c7370394e6a0ef6a8c016caefb0bd49f21..88897021fe2bd63fa7fce8e95b8ecbb3d9ce77ee 100644 (file)
@@ -70,8 +70,8 @@ void InsetFormulaMacro::write(ostream & os) const
 }
 
 
-int InsetFormulaMacro::latex(otexstream & os,
-                            OutputParams const & runparams) const
+void InsetFormulaMacro::latex(otexstream & os,
+                             OutputParams const & runparams) const
 {
        //lyxerr << "InsetFormulaMacro::latex" << endl;
        WriteStream wi(os.os(), runparams.moving_arg, true,
@@ -80,11 +80,11 @@ int InsetFormulaMacro::latex(otexstream & os,
        wi.canBreakLine(os.canBreakLine());
        tmpl()->write(wi);
        os.canBreakLine(wi.canBreakLine());
-       return 2;
+       os.texrow().newlines(wi.line());
 }
 
 
-int InsetFormulaMacro::plaintext(odocstream & os, OutputParams const & runparams) const
+int InsetFormulaMacro::plaintext(odocstringstream & os, OutputParams const & runparams, size_t) const
 {
        odocstringstream oss;
        WriteStream wi(oss, false, true, WriteStream::wsDefault, runparams.encoding);