Don't double-check all zones.

a:b is enough; we don't have to also check b:a.
This commit is contained in:
Jeff Young 2018-08-27 17:11:34 +01:00
parent 6bb75b071a
commit b842e4556d
1 changed files with 1 additions and 1 deletions

View File

@ -233,7 +233,7 @@ int DRC::TestZoneToZoneOutline( ZONE_CONTAINER* aZone, bool aCreateMarkers )
if( aZone && ( aZone != zoneRef) )
continue;
for( int ia2 = 0; ia2 < board->GetAreaCount(); ia2++ )
for( int ia2 = ia + 1; ia2 < board->GetAreaCount(); ia2++ )
{
ZONE_CONTAINER* zoneToTest = board->GetArea( ia2 );
SHAPE_POLY_SET testSmoothedPoly;