Use cached bounding boxes for performance.
Fixes: lp:1846438 * https://bugs.launchpad.net/kicad/+bug/1846438
This commit is contained in:
parent
d22ea0e201
commit
0ad9ddb3a6
|
@ -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<CN_ZONE*> ( aZone );
|
||||
|
|
Loading…
Reference in New Issue