Don't show leading ratline for unconnected net

Fixes https://gitlab.com/kicad/code/kicad/-/issues/8040
This commit is contained in:
Jon Evans 2021-04-02 20:29:25 -04:00
parent 3c1a8f8c88
commit a8896ebd73
1 changed files with 1 additions and 1 deletions

View File

@ -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 )