summaryrefslogtreecommitdiff
path: root/lib/stitches
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2025-04-27 21:20:32 +0200
committerGitHub <noreply@github.com>2025-04-27 21:20:32 +0200
commit3b47c180fd334a64805a49fe7580709d04f6242c (patch)
tree84f4dcbae4899bb65fd0897e316a333608b8f872 /lib/stitches
parentb8d5ec0e2916c71bdd6260b9944cecb1be219afc (diff)
circular fill: use first boundary linestring if outline is multilinestring (#3694)
Diffstat (limited to 'lib/stitches')
-rw-r--r--lib/stitches/circular_fill.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/stitches/circular_fill.py b/lib/stitches/circular_fill.py
index 8b7fae41..26b48f24 100644
--- a/lib/stitches/circular_fill.py
+++ b/lib/stitches/circular_fill.py
@@ -118,6 +118,8 @@ def _apply_bean_stitch_and_repeats(stitches, repeats, bean_stitch_repeats):
def _apply_start_end_commands(shape, path, starting_point, ending_point):
if starting_point or ending_point:
outline = shape.boundary
+ if isinstance(outline, shgeo.MultiLineString):
+ outline = outline.geoms[0]
if starting_point:
start = _get_start_end_sequence(outline, shgeo.Point(*starting_point), shgeo.Point(*path[0]))
path = list(start.coords) + path