From 88fa78a9ad9f723edf32c4e9bd7b803b04899c66 Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Sat, 17 Aug 2024 07:26:52 +0200 Subject: auto satin: filter zero length strokes as well (#3139) --- lib/extensions/auto_satin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/extensions/auto_satin.py b/lib/extensions/auto_satin.py index 495ee989..8536e4ee 100644 --- a/lib/extensions/auto_satin.py +++ b/lib/extensions/auto_satin.py @@ -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: -- cgit v1.2.3