7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-04 22:25:30 +00:00

DRC_LAST is the last index, not the size.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20049
This commit is contained in:
Jeff Young 2025-02-26 12:49:51 +00:00
parent 6ccacd232e
commit 956875e2f4
2 changed files with 3 additions and 3 deletions

View File

@ -1329,7 +1329,7 @@ void DIALOG_DRC::updateDisplayedCounts()
bool unconnectedOverflowed = false;
bool footprintsOverflowed = false;
for( int ii = DRCE_FIRST; ii < DRCE_LAST; ++ii )
for( int ii = DRCE_FIRST; ii <= DRCE_LAST; ++ii )
{
const SEVERITY severity = bds().GetSeverity( ii );

View File

@ -595,7 +595,7 @@ void DRC_ENGINE::InitEngine( const wxFileName& aRulePath )
throw original_parse_error;
}
for( int ii = DRCE_FIRST; ii < DRCE_LAST; ++ii )
for( int ii = DRCE_FIRST; ii <= DRCE_LAST; ++ii )
m_errorLimits[ ii ] = ERROR_LIMIT;
m_rulesValid = true;
@ -612,7 +612,7 @@ void DRC_ENGINE::RunTests( EDA_UNITS aUnits, bool aReportAllTrackErrors, bool aT
m_reportAllTrackErrors = aReportAllTrackErrors;
m_testFootprints = aTestFootprints;
for( int ii = DRCE_FIRST; ii < DRCE_LAST; ++ii )
for( int ii = DRCE_FIRST; ii <= DRCE_LAST; ++ii )
{
if( m_designSettings->Ignore( ii ) )
m_errorLimits[ ii ] = 0;