From 1ff0dfb052d18727f1b54ff7c218a2a61cbb1627 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sun, 16 Feb 2025 14:08:34 +0000 Subject: [PATCH] No connections AND no-net is not an error Fixes https://gitlab.com/kicad/code/kicad/-/issues/19737 --- pcbnew/connectivity/connectivity_data.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pcbnew/connectivity/connectivity_data.cpp b/pcbnew/connectivity/connectivity_data.cpp index 6e842e07e6..7caf68ff60 100644 --- a/pcbnew/connectivity/connectivity_data.cpp +++ b/pcbnew/connectivity/connectivity_data.cpp @@ -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();