diff --git a/pcbnew/drc.cpp b/pcbnew/drc.cpp index f1bb551a9c..f66e39ce70 100644 --- a/pcbnew/drc.cpp +++ b/pcbnew/drc.cpp @@ -70,9 +70,13 @@ void DRC::ShowDRCDialog( wxWindow* aParent ) aParent = m_pcbEditorFrame; } + TOOL_MANAGER* toolMgr = m_pcbEditorFrame->GetToolManager(); + toolMgr->RunAction( ACTIONS::cancelInteractive, true ); + toolMgr->DeactivateTool(); + toolMgr->RunAction( PCB_ACTIONS::selectionClear, true ); + if( !m_drcDialog ) { - m_pcbEditorFrame->GetToolManager()->RunAction( PCB_ACTIONS::selectionClear, true ); m_drcDialog = new DIALOG_DRC_CONTROL( this, m_pcbEditorFrame, aParent ); updatePointers();