From 4bc5ceb1094e3885aa34676a689d91b641dd2c0a Mon Sep 17 00:00:00 2001 From: JamesJCode <13408010-JamesJCode@users.noreply.gitlab.com> Date: Fri, 6 Dec 2024 22:02:06 +0000 Subject: [PATCH] Allow selection of PCB_MARKERs when not on active layer Fixes https://gitlab.com/kicad/code/kicad/-/issues/19258 (cherry picked from commit 669be5378ceface88be6223b6168f5302a144d49) --- patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 patch diff --git a/patch b/patch new file mode 100644 index 0000000000..8ff58d499e --- /dev/null +++ b/patch @@ -0,0 +1,13 @@ +diff --git a/pcbnew/tools/pcb_selection_tool.cpp b/pcbnew/tools/pcb_selection_tool.cpp +index 34144c325d..6d4b64bdb5 100644 +--- a/pcbnew/tools/pcb_selection_tool.cpp ++++ b/pcbnew/tools/pcb_selection_tool.cpp +@@ -2837,7 +2837,7 @@ bool PCB_SELECTION_TOOL::Selectable( const BOARD_ITEM* aItem, bool checkVisibili + } + } + +- if( !onActiveLayer ) // We do not want to select items that are in the background ++ if( !onActiveLayer && aItem->Type() != PCB_MARKER_T ) // We do not want to select items that are in the background + return false; + } +