X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLaTeX.C;h=a8106ccf2fd5f4ff3f811f22d8e967b8834441c5;hb=15a0218c0fbd310587456f1342f051a663a69d64;hp=15c13cb833d6bdff23c27a8773931ed581a76f78;hpb=83acbbd5237373926c629855379e1df9a04209b2;p=lyx.git diff --git a/src/LaTeX.C b/src/LaTeX.C index 15c13cb833..a8106ccf2f 100644 --- a/src/LaTeX.C +++ b/src/LaTeX.C @@ -174,7 +174,12 @@ int LaTeX::run(TeXErrors & terr, LyXFunc * lfun) ++count; lyxerr[Debug::LATEX] << "Run #" << count << endl; - if (lfun) lfun->Dispatch(LFUN_MESSAGE, _("LaTeX run number") + ' ' + tostr(count)); + if (lfun) { + ostringstream str; + str << _("LaTeX run number") << ' ' << count; + lfun->Dispatch(LFUN_MESSAGE, str.str().c_str()); + } + //WriteStatus(lfun, string(_("LaTeX run number ")) + tostr(count)); this->operator()(); @@ -251,7 +256,12 @@ int LaTeX::run(TeXErrors & terr, LyXFunc * lfun) << "Dep. file has changed or rerun requested" << endl; lyxerr[Debug::LATEX] << "Run #" << count << endl; - if (lfun) lfun->Dispatch(LFUN_MESSAGE, _("LaTeX run number") + ' ' + tostr(count)); + if (lfun) { + ostringstream str; + str << _("LaTeX run number") << ' ' << count; + lfun->Dispatch(LFUN_MESSAGE, str.str().c_str()); + } + // WriteStatus(minib, // string(_("LaTeX run number ")) + tostr(count)); this->operator()(); @@ -302,7 +312,12 @@ int LaTeX::run(TeXErrors & terr, LyXFunc * lfun) rerun = false; ++count; lyxerr[Debug::LATEX] << "Run #" << count << endl; - if (lfun) lfun->Dispatch(LFUN_MESSAGE, _("LaTeX run numger") + ' ' + tostr(count)); + if (lfun) { + ostringstream str; + str << _("LaTeX run number") << ' ' << count; + lfun->Dispatch(LFUN_MESSAGE, str.str().c_str()); + } + // WriteStatus(minib, string(_("LaTeX run number ")) + tostr(count)); this->operator()(); scanres = scanLogFile(terr);