diff --git a/pcbnew/tools/edit_tool.cpp b/pcbnew/tools/edit_tool.cpp index a42b2d38fa..0225696633 100644 --- a/pcbnew/tools/edit_tool.cpp +++ b/pcbnew/tools/edit_tool.cpp @@ -2398,8 +2398,7 @@ bool EDIT_TOOL::pickReferencePoint( const wxString& aTooltip, const wxString& aS m_statusPopup->Popup(); canvas()->SetStatusPopup( m_statusPopup->GetPanel() ); - TOOL_EVENT subtoolEvent = PCB_ACTIONS::pickerSubTool.MakeEvent(); - m_toolMgr->RunAction( ACTIONS::pickerSubTool, true, (void*) &subtoolEvent ); + m_toolMgr->RunAction( ACTIONS::pickerSubTool, true ); while( !done ) {