From 1b4157e2f00afc0ec952c7426730fac44c14b7fc Mon Sep 17 00:00:00 2001 From: Mario Voigt Date: Thu, 4 Nov 2021 19:09:22 +0100 Subject: [PATCH] small bugfix in filter --- .../filter_by_length_area/filter_by_length_area.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/fablabchemnitz/filter_by_length_area/filter_by_length_area.py b/extensions/fablabchemnitz/filter_by_length_area/filter_by_length_area.py index bdfea872..90f6343b 100644 --- a/extensions/fablabchemnitz/filter_by_length_area/filter_by_length_area.py +++ b/extensions/fablabchemnitz/filter_by_length_area/filter_by_length_area.py @@ -112,7 +112,7 @@ class FilterByLengthArea(inkex.EffectExtension): stotal = round(stotal, so.precision) nodes = len(element.path) if (so.min_filter_enable is True and nodes / stotal < so.min_nodes / self.svg.unittouu(str(so.nodes_interval) + so.unit)) or \ - (so.max_filter_enable is True and nodes / stotal < so.max_nodes / self.svg.unittouu(str(so.nodes_interval) + so.unit)) or \ + (so.max_filter_enable is True and nodes / stotal > so.max_nodes / self.svg.unittouu(str(so.nodes_interval) + so.unit)) or \ (so.min_filter_enable is False and so.max_filter_enable is False): #complete selection if so.debug is True: inkex.utils.debug("id={}, length={:0.3f}{}, nodes={}".format(element.get('id'), self.svg.uutounit(str(stotal), so.unit), so.unit, nodes))