Restore missing layer check

This commit is contained in:
Seth Hillbrand 2020-09-23 13:33:28 -07:00
parent 188232de6f
commit b31eafdfa8
1 changed files with 4 additions and 1 deletions

View File

@ -657,6 +657,9 @@ void CN_VISITOR::checkZoneZoneConnection( CN_ZONE_LAYER* aZoneLayerA, CN_ZONE_LA
const auto zoneA = static_cast<const ZONE_CONTAINER*>( aZoneLayerA->Parent() );
const auto zoneB = static_cast<const ZONE_CONTAINER*>( aZoneLayerB->Parent() );
if( aZoneA->Layer() != aZoneB->Layer() )
return;
if( aZoneLayerB->Net() != aZoneLayerA->Net() )
return; // we only test zones belonging to the same net