From 61934c285c4b791819325bab4bd0e97f988a2936 Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Tue, 22 Oct 2019 23:29:45 +0100 Subject: [PATCH] pcbnew: Fix deletion of vias in global delete window Fixes: lp:1847580 * https://bugs.launchpad.net/kicad/+bug/1847580 (cherry picked from commit 3b1817ee324f37b43acaacee8d0f8c404f1966a5) --- pcbnew/dialogs/dialog_global_deletion.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pcbnew/dialogs/dialog_global_deletion.cpp b/pcbnew/dialogs/dialog_global_deletion.cpp index 35b62ecdc5..2014e9578d 100644 --- a/pcbnew/dialogs/dialog_global_deletion.cpp +++ b/pcbnew/dialogs/dialog_global_deletion.cpp @@ -214,7 +214,8 @@ void DIALOG_GLOBAL_DELETION::AcceptPcbDelete() if( ( track->GetState( TRACK_LOCKED | TRACK_AR ) & track_mask_filter ) != 0 ) continue; - if( ( track->GetState( TRACK_LOCKED | TRACK_AR ) == 0 ) && + if( ( track->Type() == PCB_TRACE_T ) && + ( track->GetState( TRACK_LOCKED | TRACK_AR ) == 0 ) && !m_TrackFilterNormal->GetValue() ) continue;