Allow cloned buffers to give alerts in runLaTeX()

This was disabled in 2009 in bea0925f but it is now safe.

From Richard:
"I am pretty sure that all the work that Peter Kümmel did with the
InGuiThread classes dealt with this issue."
This commit is contained in:
Scott Kostyshak 2015-02-20 17:45:36 -05:00
parent 4f0593f91b
commit f74b2b79c7

View File

@ -654,13 +654,13 @@ bool Converters::runLaTeX(Buffer const & buffer, string const & command,
buffer.bufferErrors(terr, errorList);
// check return value from latex.run().
if ((result & LaTeX::NO_LOGFILE) && !buffer.isClone()) {
if (result & LaTeX::NO_LOGFILE) {
docstring const str =
bformat(_("LaTeX did not run successfully. "
"Additionally, LyX could not locate "
"the LaTeX log %1$s."), from_utf8(name));
Alert::error(_("LaTeX failed"), str);
} else if ((result & LaTeX::NO_OUTPUT) && !buffer.isClone()) {
} else if (result & LaTeX::NO_OUTPUT) {
Alert::warning(_("Output is empty"),
_("No output file was generated."));
}