From 107c79484dd17ddd4d669f9b4691ed1abea744d0 Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Wed, 28 Jun 2023 23:29:35 +0100 Subject: [PATCH] Give default nullptr to gridSetOrigin to denote no known origin Fixes KICAD-2BE --- common/tool/actions.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/common/tool/actions.cpp b/common/tool/actions.cpp index 71da3948c6..8a5df60f8f 100644 --- a/common/tool/actions.cpp +++ b/common/tool/actions.cpp @@ -532,11 +532,14 @@ TOOL_ACTION ACTIONS::gridPrev( "common.Control.gridPrev", AS_GLOBAL, MD_SHIFT + 'N', LEGACY_HK_NAME( "Switch Grid To Previous" ), _( "Switch to Previous Grid" ), "" ); -TOOL_ACTION ACTIONS::gridSetOrigin( "common.Control.gridSetOrigin", - AS_GLOBAL, - 0, LEGACY_HK_NAME( "Set Grid Origin" ), - _( "Grid Origin" ), _( "Set the grid origin point" ), - BITMAPS::grid_select_axis ); +TOOL_ACTION ACTIONS::gridSetOrigin( TOOL_ACTION_ARGS() + .Name( "common.Control.gridSetOrigin" ) + .Scope( AS_GLOBAL ) + .LegacyHotkeyName( "Set Grid Origin" ) + .MenuText( _( "Grid Origin" ) ) + .Tooltip( _( "Set the grid origin point" ) ) + .Icon( BITMAPS::grid_select_axis ) + .Parameter( nullptr ) ); TOOL_ACTION ACTIONS::gridResetOrigin( "common.Control.gridResetOrigin", AS_GLOBAL,