auto satin: filter zero length strokes as well ()

pull/3147/head
Kaalleen 2024-08-17 07:26:52 +02:00 zatwierdzone przez GitHub
rodzic 2f3737e3cf
commit 88fa78a9ad
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 1 dodań i 1 usunięć
lib/extensions

Wyświetl plik

@ -65,7 +65,7 @@ class AutoSatin(CommandsExtension):
# Ignore fills and zero length satins
elements = [element for element in self.elements if (isinstance(element, SatinColumn) and element.center_line.length != 0) or
isinstance(element, Stroke)]
(isinstance(element, Stroke) and element.as_multi_line_string().length != 0)]
# at this point we possibly removed all the elements, in this case stop here
if not elements: