From efb452df37f1dd891de8e2e06bb66cd6c42ab88e Mon Sep 17 00:00:00 2001 From: Mike Williams Date: Thu, 6 Jul 2023 11:22:24 -0400 Subject: [PATCH] PCB: selectionCursor can optionally take a filter list Make sure we pass a default nullptr parameter if we want everything. --- pcbnew/tools/pcb_actions.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pcbnew/tools/pcb_actions.cpp b/pcbnew/tools/pcb_actions.cpp index c777dc9470..c0f39c0529 100644 --- a/pcbnew/tools/pcb_actions.cpp +++ b/pcbnew/tools/pcb_actions.cpp @@ -31,6 +31,7 @@ #include #include #include +#include #include #include @@ -1522,8 +1523,10 @@ TOOL_ACTION PCB_ACTIONS::selectionActivate( "pcbnew.InteractiveSelection", AS_GLOBAL, 0, "", "", "", // No description, not shown anywhere BITMAPS::INVALID_BITMAP, AF_ACTIVATE ); -TOOL_ACTION PCB_ACTIONS::selectionCursor( "pcbnew.InteractiveSelection.Cursor", - AS_GLOBAL ); +TOOL_ACTION PCB_ACTIONS::selectionCursor( TOOL_ACTION_ARGS() + .Name( "pcbnew.InteractiveSelection.Cursor" ) + .Scope( AS_GLOBAL ) + .Parameter( nullptr ) ); TOOL_ACTION PCB_ACTIONS::selectItem( "pcbnew.InteractiveSelection.SelectItem", AS_GLOBAL );