From f74b2b79c7925454ba01b42bbd30c64f0ab30d31 Mon Sep 17 00:00:00 2001 From: Scott Kostyshak Date: Fri, 20 Feb 2015 17:45:36 -0500 Subject: [PATCH] Allow cloned buffers to give alerts in runLaTeX() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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." --- src/Converter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Converter.cpp b/src/Converter.cpp index a00b0f49c0..b78ee90b45 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.")); } -- 2.39.5