diff --git a/pcbnew/drc/drc_test_provider_connection_width.cpp b/pcbnew/drc/drc_test_provider_connection_width.cpp index abfd7c1b28..7749e072c4 100644 --- a/pcbnew/drc/drc_test_provider_connection_width.cpp +++ b/pcbnew/drc/drc_test_provider_connection_width.cpp @@ -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 );