Use cached bounding boxes for performance.

Fixes: lp:1846438
* https://bugs.launchpad.net/kicad/+bug/1846438
This commit is contained in:
Jeff Young 2019-10-04 11:44:19 +01:00
parent d22ea0e201
commit 0ad9ddb3a6
1 changed files with 1 additions and 1 deletions

View File

@ -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 );