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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user