pcbnew: Don't stack same tool handler

The Get and place tool used to live in selection tool and could activate
the edit tool by stacking calls.  Now that it is itself in the edit
tool, we cannot stack another call to the edit tool that runs
immediately, instead we allow the GetAndPlace to finish before beginning
the next tool (Move)
This commit is contained in:
Seth Hillbrand 2019-08-14 17:12:00 -07:00
parent a0eaff289a
commit 959a4bdded
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ int EDIT_TOOL::GetAndPlace( const TOOL_EVENT& aEvent )
m_toolMgr->RunAction( PCB_ACTIONS::selectItem, true, (void*) module ); m_toolMgr->RunAction( PCB_ACTIONS::selectItem, true, (void*) module );
selectionTool->GetSelection().SetReferencePoint( module->GetPosition() ); selectionTool->GetSelection().SetReferencePoint( module->GetPosition() );
m_toolMgr->RunAction( PCB_ACTIONS::move, true ); m_toolMgr->RunAction( PCB_ACTIONS::move, false );
} }
return 0; return 0;