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 18:38:56 +01:00
parent 6bb75b071a
commit b842e4556d
+1 -1
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;