summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/stitches/auto_fill.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stitches/auto_fill.py b/lib/stitches/auto_fill.py
index 24ce6610..40b74d23 100644
--- a/lib/stitches/auto_fill.py
+++ b/lib/stitches/auto_fill.py
@@ -195,7 +195,7 @@ def insert_node(graph, shape, point):
edges = []
for start, end, key, data in graph.edges(keys=True, data=True):
- if key == "outline":
+ if key == "outline" and data['outline'] == outline:
edges.append(((start, end), data))
edge, data = min(edges, key=lambda edge_data: shgeo.LineString(edge_data[0]).distance(projected_point))