From ae80e304672866b19b04540d0ad037c640c04890 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Mon, 1 Dec 2025 17:15:45 -0800 Subject: [PATCH] Ensure closed polygons for filling PDF output needs closed polygons to fill objects, so ensure that we properly close before filling --- common/plotters/PDF_plotter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/plotters/PDF_plotter.cpp b/common/plotters/PDF_plotter.cpp index c19c92e97c..125526aef4 100644 --- a/common/plotters/PDF_plotter.cpp +++ b/common/plotters/PDF_plotter.cpp @@ -488,7 +488,7 @@ void PDF_PLOTTER::PlotPoly( const std::vector& aCornerList, FILL_T aFi if( aFill == FILL_T::NO_FILL ) fmt::println( m_workFile, "S" ); else if( aWidth == 0 ) - fmt::println( m_workFile, "f" ); + fmt::println( m_workFile, "h f" ); else fmt::println( m_workFile, "b" ); } @@ -538,7 +538,7 @@ void PDF_PLOTTER::PlotPoly( const SHAPE_LINE_CHAIN& aLineChain, FILL_T aFill, in if( aFill == FILL_T::NO_FILL ) fmt::println( m_workFile, "S" ); else if( aWidth == 0 ) - fmt::println( m_workFile, "f" ); + fmt::println( m_workFile, "h f" ); else fmt::println( m_workFile, "b" ); }