Allow selecting locked pads at all times

Locked pads are a bit different from other locked items
and there are sufficient reasons to need to select them
that it makes sense to introduce this inconsistency.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/6837
This commit is contained in:
Jon Evans 2020-12-24 14:35:37 -05:00
parent 38b8bc89ac
commit a9ff98bccc
1 changed files with 1 additions and 1 deletions

View File

@ -1557,7 +1557,7 @@ void PCB_SELECTION_TOOL::FilterCollectedItems( GENERAL_COLLECTOR& aCollector )
bool PCB_SELECTION_TOOL::itemPassesFilter( BOARD_ITEM* aItem )
{
if( aItem->IsLocked() && !m_filter.lockedItems )
if( aItem->IsLocked() && !m_filter.lockedItems && aItem->Type() != PCB_PAD_T )
return false;
switch( aItem->Type() )