Do not try to process invalid ratsnest nodes
Fixes https://gitlab.com/kicad/code/kicad/-/issues/14254
(cherry picked from commit 8eaa3cfac9
)
This commit is contained in:
parent
279641df73
commit
9f7b31b5c5
|
@ -288,7 +288,8 @@ void BOARD::UpdateRatsnestExclusions()
|
|||
GetConnectivity()->RunOnUnconnectedEdges(
|
||||
[&]( CN_EDGE& aEdge )
|
||||
{
|
||||
if( aEdge.GetSourceNode() && aEdge.GetTargetNode() )
|
||||
if( aEdge.GetSourceNode() && aEdge.GetTargetNode()
|
||||
&& aEdge.GetSourceNode()->Valid() && aEdge.GetTargetNode()->Valid() )
|
||||
{
|
||||
std::pair<KIID, KIID> ids = { aEdge.GetSourceNode()->Parent()->m_Uuid,
|
||||
aEdge.GetTargetNode()->Parent()->m_Uuid };
|
||||
|
|
Loading…
Reference in New Issue