From 4e3730f65321f1239d0055d25ffc6b78d39e299c Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 17 Jun 2023 21:13:10 +0100 Subject: [PATCH] Track not dangling if entirely covered by pad. Fixes https://gitlab.com/kicad/code/kicad/-/issues/14211 --- pcbnew/connectivity/connectivity_data.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pcbnew/connectivity/connectivity_data.cpp b/pcbnew/connectivity/connectivity_data.cpp index db382a6f85..22f79d35aa 100644 --- a/pcbnew/connectivity/connectivity_data.cpp +++ b/pcbnew/connectivity/connectivity_data.cpp @@ -791,9 +791,10 @@ bool CONNECTIVITY_DATA::TestTrackEndpointDangling( PCB_TRACK* aTrack, VECTOR2I* if( hitStart && hitEnd ) { - if( zone ) + if( zone || item->Type() == PCB_PAD_T || item->Type() == PCB_VIA_T ) { - // Both start and end in a zone: track may be redundant, but it's not dangling + // Both start and end in a zone or under a pad: track may be redundant, but + // it's not dangling return false; }