Browse Source

Cancel interactive tools when entering DRC.

Fixes: lp:1541526
* https://bugs.launchpad.net/kicad/+bug/1541526
pull/5/merge
Jeff Young 8 years ago
parent
commit
a1a4275e8b
  1. 6
      pcbnew/drc.cpp

6
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();

Loading…
Cancel
Save