diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2025-02-09 16:02:49 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-09 16:02:49 +0100 |
| commit | 24775f33bfe47c3153b615fe44cd3f69bbf76543 (patch) | |
| tree | 45edc57dfa673f0b939724cac9576d186e1e05b3 | |
| parent | c74240fefa7be62af563164efe6148a1f4a15a3e (diff) | |
stroke: as_multi_line_string ignore single point paths (#3491)
| -rw-r--r-- | lib/elements/stroke.py | 2 |
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 |
