]> git.lyx.org Git - lyx.git/blobdiff - src/Converter.cpp
PDF-form.lyx: add a note
[lyx.git] / src / Converter.cpp
index 933e2f673b4d63be480adf1c07b80b067c26cec4..3d3181aae0ab6339d42465c0a98ec5d738f3c679 100644 (file)
@@ -299,10 +299,10 @@ bool Converters::convert(Buffer const * buffer,
                        string const command =
                                os::python() + ' ' +
                                quoteName(libFileSearch("scripts", "convertDefault.py").toFilesystemEncoding()) +
-                               ' ' +
-                               quoteName(from_ext + ':' + from_file.toFilesystemEncoding()) +
-                               ' ' +
-                               quoteName(to_ext + ':' + to_file.toFilesystemEncoding());
+                               ' ' + from_ext + ' ' +
+                               quoteName(from_file.toFilesystemEncoding()) +
+                               ' ' + to_ext + ' ' +
+                               quoteName(to_file.toFilesystemEncoding());
                        LYXERR(Debug::FILES, "No converter defined! "
                                   "I use convertDefault.py:\n\t" << command);
                        Systemcall one;
@@ -653,8 +653,12 @@ bool Converters::runLaTeX(Buffer const & buffer, string const & command,
        if (result & LaTeX::ERRORS)
                buffer.bufferErrors(terr, errorList);
 
-       // check return value from latex.run().
-       if (result & LaTeX::NO_LOGFILE) {
+       if (!errorList.empty()) {
+         // We will show the LaTeX Errors GUI later which contains
+         // specific error messages so it would be repetitive to give
+         // e.g. the "finished with an error" dialog in addition.
+       }
+       else if (result & LaTeX::NO_LOGFILE) {
                docstring const str =
                        bformat(_("LaTeX did not run successfully. "
                                               "Additionally, LyX could not locate "
@@ -666,7 +670,6 @@ bool Converters::runLaTeX(Buffer const & buffer, string const & command,
                              "finished with an error. "
                              "It is recommended you fix the cause of the external "
                              "program's error (check the logs). "), from_utf8(command));
-               // FIXME: In LyX 2.3.0 the warning will be converted to an error.
                Alert::error(_("LaTeX failed"), str);
        } else if (result & LaTeX::NO_OUTPUT) {
                Alert::warning(_("Output is empty"),