commit f74b2b79c7925454ba01b42bbd30c64f0ab30d31
Author: Scott Kostyshak <[email protected]>
Date: Fri Feb 20 17:45:36 2015 -0500
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."
diff --git a/src/Converter.cpp b/src/Converter.cpp
index a00b0f4..b78ee90 100644
--- a/src/Converter.cpp
+++ b/src/Converter.cpp
@@ -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."));
}