]> git.lyx.org Git - lyx.git/commitdiff
Amend 75f7eafd
authorEnrico Forestieri <forenr@lyx.org>
Wed, 29 Apr 2015 11:59:28 +0000 (13:59 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Wed, 29 Apr 2015 11:59:28 +0000 (13:59 +0200)
Was forgetting this last bit from 64e0c558. Also give a message such
that the user is informed that not everything is lost if latex fails.
With this, the previews are generated also when the document directly
specifies a specific pdf output format.

lib/scripts/legacy_lyxpreview2ppm.py
lib/scripts/lyxpreview2bitmap.py

index 597883a4aa32ad1ff076967aa7bc3c509e8cb411..86a873502e40b7bf92a3e399b1778322938c1a53 100644 (file)
@@ -302,7 +302,7 @@ def legacy_conversion_step1(latex_file, dpi, output_format, fg_color, bg_color,
     # Compile the latex file.
     latex_status, latex_stdout = run_latex(latex, latex_file)
     if latex_status:
-      return (latex_status, [])
+        warning("trying to recover from failed compilation")
 
     if pdf_output:
         return legacy_conversion_step3(latex_file, dpi, output_format, True, skipMetrics)
index de4121f2dbca750ea22ed3226c0a8d070ad22d00..dfed2643ed84d21644b2560b9b399cfee8cfc35c 100755 (executable)
@@ -435,7 +435,9 @@ def main(argv):
                 fg_color, bg_color, latex, pdf_output)
 
     # Compile the latex file.
-    run_latex(latex, latex_file, bibtex)
+    latex_status, latex_stdout = run_latex(latex, latex_file, bibtex)
+    if latex_status:
+        warning("trying to recover from failed compilation")
 
     # The dvi output file name
     dvi_file = latex_file_re.sub(".dvi", latex_file)