summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/elements/fill_stitch.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/elements/fill_stitch.py b/lib/elements/fill_stitch.py
index 923ce23f..5f33eb65 100644
--- a/lib/elements/fill_stitch.py
+++ b/lib/elements/fill_stitch.py
@@ -773,8 +773,6 @@ class FillStitch(EmbroideryElement):
paths = self.paths
paths.sort(key=lambda point_list: shgeo.Polygon(point_list).area, reverse=True)
shape = shgeo.MultiPolygon([(paths[0], paths[1:])])
- if self.node.style('fill-rule') == 'nonzero':
- shape = ensure_multi_polygon(shape.buffer(0))
return shape
@property
@@ -787,6 +785,7 @@ class FillStitch(EmbroideryElement):
return ensure_multi_polygon(set_precision(shape, 0.0000000001), 3)
shape = make_valid(shape)
+
return ensure_multi_polygon(set_precision(shape, 0.00000000001), 3)
def _get_clipped_path(self):