Commit 7a526261 authored by Maciej Suminski's avatar Maciej Suminski

PNS router deselects all items when started.

parent f0499779
...@@ -633,6 +633,9 @@ int ROUTER_TOOL::Main( TOOL_EVENT& aEvent ) ...@@ -633,6 +633,9 @@ int ROUTER_TOOL::Main( TOOL_EVENT& aEvent )
BOARD* board = getModel<BOARD>( PCB_T ); BOARD* board = getModel<BOARD>( PCB_T );
BOARD_DESIGN_SETTINGS& bds = board->GetDesignSettings(); BOARD_DESIGN_SETTINGS& bds = board->GetDesignSettings();
// Deselect all items
m_toolMgr->RunAction( COMMON_ACTIONS::selectionClear );
getEditFrame<PCB_EDIT_FRAME>()->SetToolID( ID_TRACK_BUTT, wxCURSOR_PENCIL, _( "Interactive Router" ) ); getEditFrame<PCB_EDIT_FRAME>()->SetToolID( ID_TRACK_BUTT, wxCURSOR_PENCIL, _( "Interactive Router" ) );
ctls->SetSnapping( true ); ctls->SetSnapping( true );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment