diff --git a/pcbnew/connectivity/connectivity_algo.cpp b/pcbnew/connectivity/connectivity_algo.cpp index dff6081d3f..87d33776fa 100644 --- a/pcbnew/connectivity/connectivity_algo.cpp +++ b/pcbnew/connectivity/connectivity_algo.cpp @@ -600,7 +600,7 @@ void CN_VISITOR::checkZoneItemConnection( CN_ZONE* aZone, CN_ITEM* aItem ) if( aZone->Net() != aItem->Net() && !aItem->CanChangeNet() ) return; - if( !aZone->Parent()->GetBoundingBox().Intersects( aItem->Parent()->GetBoundingBox() ) ) + if( !aZone->BBox().Intersects( aItem->BBox() ) ) return; auto zoneItem = static_cast ( aZone );