diff options
Diffstat (limited to 'lib/elements')
| -rw-r--r-- | lib/elements/fill_stitch.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/elements/fill_stitch.py b/lib/elements/fill_stitch.py index a0ab0d33..ad2b5372 100644 --- a/lib/elements/fill_stitch.py +++ b/lib/elements/fill_stitch.py @@ -269,6 +269,8 @@ class FillStitch(EmbroideryElement): if isinstance(valid_shape, shgeo.Polygon): return shgeo.MultiPolygon([valid_shape]) + if isinstance(valid_shape, shgeo.LineString): + return shgeo.MultiPolygon([]) polygons = [] for polygon in valid_shape.geoms: |
