From 02bbfc8f577d04de6ce078e5b9bd74c5d894f0f5 Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Sat, 30 Sep 2023 16:00:15 -0400 Subject: [PATCH] Fixes EDIT_TOOL::Move parameter assert SENTRY KICAD-2CK --- pcbnew/tools/pcb_actions.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pcbnew/tools/pcb_actions.cpp b/pcbnew/tools/pcb_actions.cpp index 695e4d0488..7acd60e0a4 100644 --- a/pcbnew/tools/pcb_actions.cpp +++ b/pcbnew/tools/pcb_actions.cpp @@ -411,7 +411,8 @@ TOOL_ACTION PCB_ACTIONS::move( TOOL_ACTION_ARGS() .MenuText( _( "Move" ) ) .Tooltip( _( "Moves the selected item(s)" ) ) .Icon( BITMAPS::move ) - .Flags( AF_ACTIVATE ) ); + .Flags( AF_ACTIVATE ) + .Parameter( ACTIONS::CURSOR_EVENT_TYPE::CURSOR_NONE ) ); TOOL_ACTION PCB_ACTIONS::moveIndividually( TOOL_ACTION_ARGS() .Name( "pcbnew.InteractiveMove.moveIndividually" ) @@ -420,7 +421,8 @@ TOOL_ACTION PCB_ACTIONS::moveIndividually( TOOL_ACTION_ARGS() .MenuText( _( "Move Individually" ) ) .Tooltip( _( "Moves the selected items one-by-one" ) ) .Icon( BITMAPS::move ) - .Flags( AF_ACTIVATE ) ); + .Flags( AF_ACTIVATE ) + .Parameter( ACTIONS::CURSOR_EVENT_TYPE::CURSOR_NONE ) ); TOOL_ACTION PCB_ACTIONS::moveWithReference( TOOL_ACTION_ARGS() .Name( "pcbnew.InteractiveMove.moveWithReference" ) @@ -428,7 +430,8 @@ TOOL_ACTION PCB_ACTIONS::moveWithReference( TOOL_ACTION_ARGS() .MenuText( _( "Move with Reference" ) ) .Tooltip( _( "Moves the selected item(s) with a specified starting point" ) ) .Icon( BITMAPS::move ) - .Flags( AF_ACTIVATE ) ); + .Flags( AF_ACTIVATE ) + .Parameter( ACTIONS::CURSOR_EVENT_TYPE::CURSOR_NONE ) ); TOOL_ACTION PCB_ACTIONS::copyWithReference( TOOL_ACTION_ARGS() .Name( "pcbnew.InteractiveMove.copyWithReference" )