summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2025-02-09 16:02:49 +0100
committerGitHub <noreply@github.com>2025-02-09 16:02:49 +0100
commit24775f33bfe47c3153b615fe44cd3f69bbf76543 (patch)
tree45edc57dfa673f0b939724cac9576d186e1e05b3
parentc74240fefa7be62af563164efe6148a1f4a15a3e (diff)
stroke: as_multi_line_string ignore single point paths (#3491)
-rw-r--r--lib/elements/stroke.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/elements/stroke.py b/lib/elements/stroke.py
index 7c1c39fd..14501c87 100644
--- a/lib/elements/stroke.py
+++ b/lib/elements/stroke.py
@@ -508,7 +508,7 @@ class Stroke(EmbroideryElement):
@cache
def as_multi_line_string(self):
- line_strings = [shgeo.LineString(path) for path in self.paths]
+ line_strings = [shgeo.LineString(path) for path in self.paths if len(path) > 1]
return shgeo.MultiLineString(line_strings)
@property