From dfd8aa402df333458ee52e3ae305bf1cfc3ee867 Mon Sep 17 00:00:00 2001 From: Alex Shvartzkop Date: Sat, 18 May 2024 22:50:05 +0300 Subject: [PATCH] Fix an assert in isCopperOutside. --- pcbnew/convert_shape_list_to_polygon.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pcbnew/convert_shape_list_to_polygon.cpp b/pcbnew/convert_shape_list_to_polygon.cpp index b52627a10c..96abc9c8c2 100644 --- a/pcbnew/convert_shape_list_to_polygon.cpp +++ b/pcbnew/convert_shape_list_to_polygon.cpp @@ -159,6 +159,8 @@ static bool isCopperOutside( const FOOTPRINT* aFootprint, SHAPE_POLY_SET& aShape { SHAPE_POLY_SET poly = aShape.CloneDropTriangulation(); + poly.ClearArcs(); + poly.BooleanIntersection( *pad->GetEffectivePolygon( ERROR_INSIDE ), SHAPE_POLY_SET::PM_FAST );