drc_rtree.h: check for 0 outlines instead of 0 size

This commit is contained in:
Troy Denton 2024-10-21 21:48:47 -04:00
parent be2ef5686c
commit 7155e97dbf

View File

@ -139,8 +139,13 @@ public:
// there is an edge case where filled zones can get reduced to a point, // there is an edge case where filled zones can get reduced to a point,
// e.g. when they exist outside of the board outline, the intersection // e.g. when they exist outside of the board outline, the intersection
// w/ the board outline becomes a polygon of area 0 // w/ the board outline becomes a polygon of area 0
if( aItem->Type() == PCB_ZONE_T && bbox.GetArea() == 0 ) if( aItem->Type() == PCB_ZONE_T )
continue; {
wxASSERT( dynamic_cast<const SHAPE_POLY_SET*>( subshape ) );
const SHAPE_POLY_SET* poly = dynamic_cast<const SHAPE_POLY_SET*>( subshape );
if( poly->OutlineCount() == 0 )
continue;
}
bbox.Inflate( aWorstClearance ); bbox.Inflate( aWorstClearance );