From 4874537c40c62d5afabd46ecf105f8c5286988ed Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Tue, 30 May 2023 18:01:36 +0100 Subject: [PATCH] Push/pop router tool for inline drag. Fixes https://gitlab.com/kicad/code/kicad/-/issues/14832 --- pcbnew/router/router_tool.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pcbnew/router/router_tool.cpp b/pcbnew/router/router_tool.cpp index e2ad536ae2..8c5eb8528e 100644 --- a/pcbnew/router/router_tool.cpp +++ b/pcbnew/router/router_tool.cpp @@ -2059,6 +2059,7 @@ int ROUTER_TOOL::InlineDrag( const TOOL_EVENT& aEvent ) m_toolMgr->RunAction( PCB_ACTIONS::selectionClear, true ); + frame()->PushTool( aEvent ); Activate(); m_startItem = nullptr; @@ -2343,6 +2344,7 @@ int ROUTER_TOOL::InlineDrag( const TOOL_EVENT& aEvent ) controls()->SetAutoPan( false ); controls()->ForceCursorPosition( false ); frame()->UndoRedoBlock( false ); + frame()->PopTool( aEvent ); highlightNets( false ); return 0;