X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fformula.C;h=9ce5b1c056df983ba397eb9e25fd4f72d979ad90;hb=abb623f7872ba960a92a6d069dcb6aa5add0d8b0;hp=7762aef8cd8adb931f22cdef62ad04c6ceb8ffc8;hpb=e19f533b0e3be182795a12ebb5514b8c594b82dd;p=features.git diff --git a/src/mathed/formula.C b/src/mathed/formula.C index 7762aef8cd..9ce5b1c056 100644 --- a/src/mathed/formula.C +++ b/src/mathed/formula.C @@ -307,17 +307,17 @@ int InsetFormula::Latex(ostream & os, signed char fragile) const int ret = 0; //#warning Alejandro, the number of lines is not returned in this case // This problem will disapear at 0.13. - string output; #ifdef USE_OSTREAM_ONLY if (fragile < 0) - par->Write(output); + par->Write(os); else - mathed_write(par, output, &ret, fragile, label.c_str()); + mathed_write(par, os, &ret, fragile, label.c_str()); #else + string output; InsetFormula::Latex(output, fragile); -#endif os << output; +#endif return ret; }