From a8896ebd738a5c3b9ba456689f959c8f1c1bbead Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Fri, 2 Apr 2021 20:29:25 -0400 Subject: [PATCH] Don't show leading ratline for unconnected net Fixes https://gitlab.com/kicad/code/kicad/-/issues/8040 --- pcbnew/router/pns_topology.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/router/pns_topology.cpp b/pcbnew/router/pns_topology.cpp index c54d48c153..c2a7b29325 100644 --- a/pcbnew/router/pns_topology.cpp +++ b/pcbnew/router/pns_topology.cpp @@ -106,7 +106,7 @@ bool TOPOLOGY::LeadingRatLine( const LINE* aTrack, SHAPE_LINE_CHAIN& aRatLine ) JOINT* jt = tmpNode->FindJoint( track.CPoint( -1 ), &track ); - if( !jt ) + if( !jt || jt->Net() <= 0 ) return false; if( ( !track.EndsWithVia() && jt->LinkCount() >= 2 )