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:
parent
a0eaff289a
commit
959a4bdded
|
@ -203,7 +203,7 @@ int EDIT_TOOL::GetAndPlace( const TOOL_EVENT& aEvent )
|
|||
m_toolMgr->RunAction( PCB_ACTIONS::selectItem, true, (void*) module );
|
||||
|
||||
selectionTool->GetSelection().SetReferencePoint( module->GetPosition() );
|
||||
m_toolMgr->RunAction( PCB_ACTIONS::move, true );
|
||||
m_toolMgr->RunAction( PCB_ACTIONS::move, false );
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue