From c54d97170b67aac3246640fc3dc4e2c16139aaa8 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Tue, 15 Aug 2023 23:28:19 +0100 Subject: [PATCH] Fix bone-headed copy/paste. --- pcbnew/tools/pcb_selection_tool.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pcbnew/tools/pcb_selection_tool.cpp b/pcbnew/tools/pcb_selection_tool.cpp index 280662c320..9b47295e23 100644 --- a/pcbnew/tools/pcb_selection_tool.cpp +++ b/pcbnew/tools/pcb_selection_tool.cpp @@ -2695,7 +2695,12 @@ bool PCB_SELECTION_TOOL::Selectable( const BOARD_ITEM* aItem, bool checkVisibili case PCB_DIM_CENTER_T: case PCB_DIM_RADIAL_T: case PCB_DIM_ORTHOGONAL_T: - if( aItem->GetParentFootprint() ) + if( m_isFootprintEditor ) + { + if( !view()->IsLayerVisible( aItem->GetLayer() ) ) + return false; + } + else if( aItem->GetParentFootprint() ) { // Footprint dimension selections are only allowed in footprint editor mode. if( !checkVisibilityOnly )