From 164d40f235c2be86136cb62191c6f522c8530cb0 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Wed, 17 Jul 2019 13:24:10 +0200 Subject: [PATCH] Zone filled, non copper zones: fix missing inflate for non stroked solid areas. --- pcbnew/zone_filler.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pcbnew/zone_filler.cpp b/pcbnew/zone_filler.cpp index acd4af0986..f11afaf44f 100644 --- a/pcbnew/zone_filler.cpp +++ b/pcbnew/zone_filler.cpp @@ -851,6 +851,15 @@ bool ZONE_FILLER::fillSingleZone( ZONE_CONTAINER* aZone, SHAPE_POLY_SET& aRawPol if( aZone->GetFillMode() == ZFM_HATCH_PATTERN ) addHatchFillTypeOnZone( aZone, smoothedPoly ); + // Re-inflate after pruning of areas that don't meet minimum-width criteria + if( aZone->GetFilledPolysUseThickness() ) + { + // If we're stroking the zone with a min_width stroke then this will naturally + // inflate the zone by half_min_width + } + else if( half_min_width - epsilon > epsilon ) + smoothedPoly.Deflate( -( half_min_width - epsilon ), numSegs ); + aRawPolys = smoothedPoly; aFinalPolys = smoothedPoly;