Ensure closed polygons for filling

PDF output needs closed polygons to fill objects, so ensure that we
properly close before filling
This commit is contained in:
Seth Hillbrand
2025-12-01 17:16:27 -08:00
parent 8cdbe24011
commit ae80e30467
+2 -2
View File
@@ -488,7 +488,7 @@ void PDF_PLOTTER::PlotPoly( const std::vector<VECTOR2I>& 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" );
}