mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
drc_rtree.h: check for 0 outlines instead of 0 size
This commit is contained in:
parent
be2ef5686c
commit
7155e97dbf
@ -139,8 +139,13 @@ public:
|
||||
// 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
|
||||
// w/ the board outline becomes a polygon of area 0
|
||||
if( aItem->Type() == PCB_ZONE_T && bbox.GetArea() == 0 )
|
||||
continue;
|
||||
if( aItem->Type() == PCB_ZONE_T )
|
||||
{
|
||||
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 );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user