From 4f7cd2885f4d0e725b33c919ef655af0240948cb Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Thu, 14 Jul 2022 16:23:46 +0200 Subject: Some updates for small issues in v2.2.0 (#1721) * * autorun - underpath tolerance * save pdf file format * fill no geoms error for linestring * to satin: do not fail on mixed element list --- lib/elements/fill_stitch.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/elements') 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: -- cgit v1.2.3