]> git.lyx.org Git - features.git/commitdiff
Converters: always set version to something.
authorThibaut Cuvelier <tcuvelier@lyx.org>
Wed, 16 Sep 2020 02:12:26 +0000 (04:12 +0200)
committerThibaut Cuvelier <tcuvelier@lyx.org>
Sat, 19 Sep 2020 18:43:41 +0000 (20:43 +0200)
Otherwise, it's common to compare "None >= (6,2,6)", which makes no sense. Set it to (0,0,0) so that any comparison fails (without an error message).

lib/scripts/convertDefault.py

index 5287e9637589aeaac72e83db9c8f46b34a25e5b3..d04fa78799ba62f7a7f5a54a0eac8560970d15e2 100644 (file)
@@ -53,6 +53,8 @@ else:
         gm = True
         # we need version to be a valid integer 3-tuple
         version = (1,0,0)
+    else:
+        version = (0,0,0)
 
 # IM >= 5.5.8 separates options for source and target files
 # See http://www.imagemagick.org/Usage/basics/#why