Ensure closed polygons for filling

PDF output needs closed polygons to fill objects, so ensure that we
properly close before filling

(cherry picked from commit ae80e30467)
This commit is contained in:
Seth Hillbrand
2025-12-03 11:32:11 -08:00
parent 0be18638f8
commit d27552a282
+3 -2
View File
@@ -415,12 +415,13 @@ void PDF_PLOTTER::PlotPoly( const std::vector<VECTOR2I>& aCornerList, FILL_T aFi
if( aFill == FILL_T::NO_FILL )
fputs( "S\n", m_workFile );
else if( aWidth == 0 )
fputs( "f\n", m_workFile );
fmt::println( m_workFile, "h f" );
else
fputs( "b\n", m_workFile );
fmt::println( m_workFile, "b" );
}
void PDF_PLOTTER::PenTo( const VECTOR2I& pos, char plume )
{
wxASSERT( m_workFile );