summaryrefslogtreecommitdiff
path: root/lib/elements/stroke.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/elements/stroke.py')
-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 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: