Don't double-check all zones.
a:b is enough; we don't have to also check b:a.
This commit is contained in:
parent
6bb75b071a
commit
b842e4556d
|
@ -233,7 +233,7 @@ int DRC::TestZoneToZoneOutline( ZONE_CONTAINER* aZone, bool aCreateMarkers )
|
||||||
if( aZone && ( aZone != zoneRef) )
|
if( aZone && ( aZone != zoneRef) )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
for( int ia2 = 0; ia2 < board->GetAreaCount(); ia2++ )
|
for( int ia2 = ia + 1; ia2 < board->GetAreaCount(); ia2++ )
|
||||||
{
|
{
|
||||||
ZONE_CONTAINER* zoneToTest = board->GetArea( ia2 );
|
ZONE_CONTAINER* zoneToTest = board->GetArea( ia2 );
|
||||||
SHAPE_POLY_SET testSmoothedPoly;
|
SHAPE_POLY_SET testSmoothedPoly;
|
||||||
|
|
Loading…
Reference in New Issue