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:
parent
890e1c9ea0
commit
58d4a8bb4a
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue