]> git.lyx.org Git - lyx.git/blobdiff - lib/scripts/legacy_lyxpreview2ppm.py
Replace TeXFiles.sh by TeXFiles.py
[lyx.git] / lib / scripts / legacy_lyxpreview2ppm.py
index b3b743a4bae4075837c90f8ecf9d0bada8cd314a..f887b5c4dce96f95cfc027a034d62f1a8b49a0ee 100644 (file)
@@ -95,7 +95,7 @@ def extract_metrics_info(log_file, metrics_file):
                 descent = string.atoi(match.group(3))
 
                 frac = 0.5
-                if ascent > 0 and descent > 0:
+                if ascent >= 0 and descent >= 0:
                     ascent = float(ascent) + tp_ascent
                     descent = float(descent) - tp_descent