]> git.lyx.org Git - lyx.git/blobdiff - lib/scripts/legacy_lyxpreview2ppm.py
Pass parameters by reference (performance)
[lyx.git] / lib / scripts / legacy_lyxpreview2ppm.py
index 0468e8ccde7005f54100a0872744dd76c0d64d80..d16e86788f897f0c2720aecdfa3e398d30ac3846 100644 (file)
@@ -1,4 +1,3 @@
-#! /usr/bin/env python
 # -*- coding: utf-8 -*-
 
 # file legacy_lyxpreview2ppm.py
@@ -294,6 +293,8 @@ 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, [])
 
     if pdf_output:
         return legacy_conversion_step3(latex_file, dpi, output_format, True, skipMetrics)