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,7 +410,8 @@ void DRC_ENGINE::RunTests( EDA_UNITS aUnits, bool aTestTracksAgainstZones,
|
||||||
for( DRC_TEST_PROVIDER* provider : m_testProviders )
|
for( DRC_TEST_PROVIDER* provider : m_testProviders )
|
||||||
phases += provider->GetNumPhases();
|
phases += provider->GetNumPhases();
|
||||||
|
|
||||||
m_progressReporter->AddPhases( phases );
|
if( m_progressReporter )
|
||||||
|
m_progressReporter->AddPhases( phases );
|
||||||
|
|
||||||
for( int ii = DRCE_FIRST; ii < DRCE_LAST; ++ii )
|
for( int ii = DRCE_FIRST; ii < DRCE_LAST; ++ii )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue