Push/pop router tool for inline drag.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/14832
This commit is contained in:
Jeff Young 2023-05-30 18:01:36 +01:00
parent c36b0fcda7
commit 4874537c40
1 changed files with 2 additions and 0 deletions

View File

@ -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;