No connections AND no-net is not an error

Fixes https://gitlab.com/kicad/code/kicad/-/issues/19737
This commit is contained in:
Jeff Young
2025-02-19 23:43:53 +00:00
parent c28039556d
commit 1ff0dfb052
@@ -857,6 +857,10 @@ bool CONNECTIVITY_DATA::TestTrackEndpointDangling( PCB_TRACK* aTrack, bool aIgno
if( connected.empty() )
{
// No connections AND no-net is not an error
if( aTrack->GetNetCode() <= 0 )
return false;
if( aPos )
*aPos = aTrack->GetPosition();