Browse Source

DRC tool: Ensure all calls to the dialog are guarded by null checks

pull/16/head
Ian McInerney 5 years ago
parent
commit
542f447daa
  1. 6
      pcbnew/tools/drc_tool.cpp

6
pcbnew/tools/drc_tool.cpp

@ -209,10 +209,12 @@ void DRC_TOOL::RunTests( PROGRESS_REPORTER* aProgressReporter, bool aTestTracksA
m_drcEngine->ClearViolationHandler();
if( m_drcDialog )
{
m_drcDialog->SetDrcRun();
if( !netlist.IsEmpty() )
m_drcDialog->SetFootprintTestsRun();
if( !netlist.IsEmpty() )
m_drcDialog->SetFootprintTestsRun();
}
commit.Push( _( "DRC" ), false );

Loading…
Cancel
Save