pcbnew: Don't reinitialize the router tool in an action

Calling Init() in an action routine will reset the router
settings to the state they were in when first starting pcbnew.
The Init() function is automatically called when the tool is created.

Fixes: lp:1843810
* https://bugs.launchpad.net/kicad/+bug/1843810
This commit is contained in:
Ian McInerney 2019-10-03 23:31:33 +02:00 committed by Wayne Stambaugh
parent 890e1c9ea0
commit 58d4a8bb4a
1 changed files with 9 additions and 10 deletions

View File

@ -1215,7 +1215,6 @@ int ROUTER_TOOL::InlineBreakTrack( const TOOL_EVENT& aEvent )
if( item->Type() != PCB_TRACE_T )
return 0;
Init();
Activate();
m_toolMgr->RunAction( PCB_ACTIONS::selectionClear, true );