From d46a9cc5b35a0d1488f5fde9a24d2494ce14599e Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Wed, 28 Jun 2023 06:41:09 +0200 Subject: fill to stroke: fix remove elements with fill and stroke (#2392) --- lib/extensions/fill_to_stroke.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/extensions/fill_to_stroke.py b/lib/extensions/fill_to_stroke.py index 5672fb69..28c1f651 100644 --- a/lib/extensions/fill_to_stroke.py +++ b/lib/extensions/fill_to_stroke.py @@ -104,7 +104,7 @@ class FillToStroke(InkstitchExtension): pass # remove empty groups for parent in set(parents): - if not parent.getchildren(): + if parent is not None and not parent.getchildren(): parent.getparent().remove(parent) def _get_high_res_polygon(self, polygon): -- cgit v1.2.3