PDF plotter: fix missing space between 2 items

PDF_PLOTTER::PlotPoly( const std::vector<VECTOR2I>& aCornerList,
    FILL_T aFill, int aWidth, void* aData )
generated broken PDF files.
This commit is contained in:
jean-pierre charras
2025-10-25 13:58:19 +02:00
parent 883925bfe0
commit 2b5def6dde
+2 -2
View File
@@ -476,12 +476,12 @@ void PDF_PLOTTER::PlotPoly( const std::vector<VECTOR2I>& aCornerList, FILL_T aFi
SetCurrentLineWidth( aWidth );
VECTOR2D pos = userToDeviceCoordinates( aCornerList[0] );
fmt::print( m_workFile, "{:f} {:f} m", pos.x, pos.y );
fmt::print( m_workFile, "{:f} {:f} m ", pos.x, pos.y );
for( unsigned ii = 1; ii < aCornerList.size(); ii++ )
{
pos = userToDeviceCoordinates( aCornerList[ii] );
fmt::print( m_workFile, "{:f} {:f} l", pos.x, pos.y );
fmt::print( m_workFile, "{:f} {:f} l ", pos.x, pos.y );
}
// Close path and stroke and/or fill