Beware of infinite recursion on colliding hatched shapes.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20264
This commit is contained in:
Jeff Young
2025-03-08 21:23:14 +00:00
parent ab6ee168cf
commit 50174ec528
10 changed files with 52 additions and 20 deletions
+2 -2
View File
@@ -1006,9 +1006,9 @@ void GenerateLayerPoly( SHAPE_POLY_SET* aResult, BOARD *aBoard, PCB_LAYER_ID aLa
else
{
if( inflate != 0 )
item->TransformShapeToPolygon( exactPolys, aLayer, 0, ERROR );
item->TransformShapeToPolySet( exactPolys, aLayer, 0, ERROR );
item->TransformShapeToPolygon( *aResult, aLayer, inflate, ERROR );
item->TransformShapeToPolySet( *aResult, aLayer, inflate, ERROR );
}
}
}