summaryrefslogtreecommitdiff
path: root/lib/stitches/guided_fill.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/stitches/guided_fill.py')
-rw-r--r--lib/stitches/guided_fill.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/stitches/guided_fill.py b/lib/stitches/guided_fill.py
index 79eff6b5..6ad80da0 100644
--- a/lib/stitches/guided_fill.py
+++ b/lib/stitches/guided_fill.py
@@ -171,7 +171,8 @@ def apply_stitches(line, max_stitch_length, num_staggers, row_spacing, row_num,
points = np.array([line.interpolate(projection).coords[0] for projection in projections])
if len(points) < 2:
- return line
+ coords = line.coords
+ points = [coords[0], coords[-1]]
stitched_line = shgeo.LineString(points)