From 838d811ae69781e5304092f1d8172f3394ccea22 Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Mon, 25 Dec 2023 08:42:22 +0100 Subject: fix networkx nopath error for start/end nodes (fill) (#2635) --- lib/stitches/auto_fill.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/stitches') 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)) -- cgit v1.2.3