Only update DRC progress reporter if the reporter exists
The DRC engine might not have a reporter when run headless
This commit is contained in:
parent
c399d489ba
commit
6a7266d589
|
@ -410,6 +410,7 @@ void DRC_ENGINE::RunTests( EDA_UNITS aUnits, bool aTestTracksAgainstZones,
|
|||
for( DRC_TEST_PROVIDER* provider : m_testProviders )
|
||||
phases += provider->GetNumPhases();
|
||||
|
||||
if( m_progressReporter )
|
||||
m_progressReporter->AddPhases( phases );
|
||||
|
||||
for( int ii = DRCE_FIRST; ii < DRCE_LAST; ++ii )
|
||||
|
|
Loading…
Reference in New Issue