diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2025-10-05 07:25:35 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-05 07:25:35 +0200 |
| commit | 9e653732a0b0881c15b0a86f53d3ffae94ae979a (patch) | |
| tree | 1d65aa4ce7281046a82dade7de1027894c48834e /lib/elements | |
| parent | 9d94c54a680e469be031e18dde54865814259e71 (diff) | |
stroke: filter invalid paths in clipped path (#3989)
Diffstat (limited to 'lib/elements')
| -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 3740371f..58cc5756 100644 --- a/lib/elements/stroke.py +++ b/lib/elements/stroke.py @@ -520,7 +520,7 @@ class Stroke(EmbroideryElement): return paths # path to linestrings - line_strings = [shgeo.LineString(path) for path in paths] + line_strings = [shgeo.LineString(path) for path in paths if len(path) > 1] try: intersection = self.clip_shape.intersection(shgeo.MultiLineString(line_strings)) except GEOSException: |
