Clear arcs before deflating area outline.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/15007
This commit is contained in:
Jeff Young 2023-06-20 14:17:48 +01:00
parent 8c29091001
commit 4473ebb02d
1 changed files with 1 additions and 0 deletions

View File

@ -413,6 +413,7 @@ bool collidesWithArea( BOARD_ITEM* aItem, PCB_EXPR_CONTEXT* aCtx, ZONE* aArea )
// This is particularly important for detecting copper fills as they will be exactly
// touching along the entire exclusion border.
SHAPE_POLY_SET areaOutline = aArea->Outline()->CloneDropTriangulation();
areaOutline.ClearArcs();
areaOutline.Deflate( board->GetDesignSettings().GetDRCEpsilon(),
SHAPE_POLY_SET::ALLOW_ACUTE_CORNERS, ARC_LOW_DEF );