It is legal to have nullptr zones in the m_CopperZoneRTreeCache.

(Though we might want to re-think this strategy....)

Fixes https://gitlab.com/kicad/code/kicad/-/issues/15853
This commit is contained in:
Jeff Young 2021-08-19 22:28:54 +01:00
parent fef91fc8b9
commit ccf6e78cd5
1 changed files with 2 additions and 1 deletions

View File

@ -741,7 +741,8 @@ bool DRC_TEST_PROVIDER_CONNECTION_WIDTH::Run()
for( auto& [ zone, rtree ] : board->m_CopperZoneRTreeCache ) for( auto& [ zone, rtree ] : board->m_CopperZoneRTreeCache )
{ {
if( !rtree->GetObjectsAt( location, aLayer, aMinWidth ).empty() if( rtree
&& !rtree->GetObjectsAt( location, aLayer, aMinWidth ).empty()
&& zone->HitTestFilledArea( aLayer, location, aMinWidth ) ) && zone->HitTestFilledArea( aLayer, location, aMinWidth ) )
{ {
contributingItems.push_back( zone ); contributingItems.push_back( zone );