pcbnew: Fix deletion of vias in global delete window

Fixes: lp:1847580
* https://bugs.launchpad.net/kicad/+bug/1847580

(cherry picked from commit 3b1817ee32)
This commit is contained in:
Ian McInerney 2019-10-22 23:29:45 +01:00 committed by Wayne Stambaugh
parent a7d554971c
commit 61934c285c
1 changed files with 2 additions and 1 deletions

View File

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