diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2023-12-25 08:42:22 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-25 08:42:22 +0100 |
| commit | 838d811ae69781e5304092f1d8172f3394ccea22 (patch) | |
| tree | 2f0db35bfb0bee38c3b83c8975b3b5abba3f8c4a /lib | |
| parent | 732a6556deaddd3202409d0003147da952829844 (diff) | |
fix networkx nopath error for start/end nodes (fill) (#2635)
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/stitches/auto_fill.py | 2 |
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)) |
