diff --git a/pcbnew/class_zone.cpp b/pcbnew/class_zone.cpp index 6d46524f93..b5ef4fac06 100644 --- a/pcbnew/class_zone.cpp +++ b/pcbnew/class_zone.cpp @@ -1284,7 +1284,7 @@ double ZONE_CONTAINER::CalculateFilledArea() { m_area += m_FilledPolysList.Outline( i ).Area(); - for( int j = 0; m_FilledPolysList.HoleCount( i ); j++ ) + for( int j = 0; j < m_FilledPolysList.HoleCount( i ); j++ ) { m_area -= m_FilledPolysList.Hole( i, j ).Area(); }