From a9ff98bccc69af8176e4f4c545810798915cfdb6 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Thu, 24 Dec 2020 14:35:37 -0500 Subject: [PATCH] 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 --- pcbnew/tools/pcb_selection_tool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/tools/pcb_selection_tool.cpp b/pcbnew/tools/pcb_selection_tool.cpp index 5624f8c770..92a4ec2eb8 100644 --- a/pcbnew/tools/pcb_selection_tool.cpp +++ b/pcbnew/tools/pcb_selection_tool.cpp @@ -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() )