fill to stroke: fix remove elements with fill and stroke (#2392)

kall/test-notarization
Kaalleen 2023-06-28 06:41:09 +02:00 zatwierdzone przez GitHub
rodzic a046c256ae
commit d46a9cc5b3
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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):