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:
parent
fef91fc8b9
commit
ccf6e78cd5
|
@ -741,7 +741,8 @@ bool DRC_TEST_PROVIDER_CONNECTION_WIDTH::Run()
|
|||
|
||||
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 ) )
|
||||
{
|
||||
contributingItems.push_back( zone );
|
||||
|
|
Loading…
Reference in New Issue