Change list array bound to prevent bug that would break compatibility with the first release (and only the first release, e.g Inkscape 1.4 but not 1.4.1) of every release

This commit is contained in:
Dexx Stexx 2024-06-12 02:37:31 -07:00
parent b68cf5c2b5
commit 2bdc7eae8b

View File

@ -2560,7 +2560,7 @@ class ChicagoPlus:
inkscape_path = subprocess.check_output(["which", "inkscape"]).strip().decode() inkscape_path = subprocess.check_output(["which", "inkscape"]).strip().decode()
inkscape_version_cmd = subprocess.check_output([inkscape_path, "--version"]) inkscape_version_cmd = subprocess.check_output([inkscape_path, "--version"])
inkscape_version = inkscape_version_cmd.splitlines()[0].split()[1].decode().split(".")[0:3] inkscape_version = inkscape_version_cmd.splitlines()[0].split()[1].decode().split(".")[0:2]
self.inkscape_info = inkscape_info(inkscape_path, inkscape_version) self.inkscape_info = inkscape_info(inkscape_path, inkscape_version)