From d41e47609cfe70788664a6652bbb7740ba903c8f Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sun, 3 Jul 2022 11:24:23 +0200 Subject: [PATCH] Pcbnew: fix plot issue for non filled polygons in footprints. Fixes #11959 https://gitlab.com/kicad/code/kicad/issues/11959 --- pcbnew/plot_brditems_plotter.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pcbnew/plot_brditems_plotter.cpp b/pcbnew/plot_brditems_plotter.cpp index cbce6e05a3..dc88940410 100644 --- a/pcbnew/plot_brditems_plotter.cpp +++ b/pcbnew/plot_brditems_plotter.cpp @@ -741,7 +741,9 @@ void BRDITEMS_PLOTTER::PlotFootprintShape( const FP_SHAPE* aShape ) for( int jj = 0; jj < tmpPoly.OutlineCount(); ++jj ) { SHAPE_LINE_CHAIN &poly = tmpPoly.Outline( jj ); - m_plotter->PlotPoly( poly, FILL_T::FILLED_SHAPE, thickness, &gbr_metadata ); + m_plotter->PlotPoly( poly, aShape->IsFilled() ? + FILL_T::FILLED_SHAPE : FILL_T::NO_FILL, + thickness, &gbr_metadata ); } } }