From f4abc43da00d04daadd58dbe6c577e5e3dd0258e Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Tue, 26 Sep 2023 12:51:04 -0700 Subject: [PATCH] PL Editor: Fix formatting error fmt requires `:` prior to the numerical formatting --- bitmap2component/bitmap2component.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bitmap2component/bitmap2component.cpp b/bitmap2component/bitmap2component.cpp index bb8ab448bf..39d4d3ef67 100644 --- a/bitmap2component/bitmap2component.cpp +++ b/bitmap2component/bitmap2component.cpp @@ -386,9 +386,9 @@ void BITMAPCONV_INFO::outputOnePolygon( SHAPE_LINE_CHAIN& aPolygon, const char* for( ii = 0; ii < aPolygon.PointCount(); ii++ ) { currpoint = aPolygon.CPoint( ii ); - strbuf = fmt::format( " (xy {.3f} {.3f})", - ( currpoint.x - offsetX ) / PL_IU_PER_MM, - ( currpoint.y - offsetY ) / PL_IU_PER_MM ); + strbuf = fmt::format( " (xy {:.3f} {:.3f})", + currpoint.x - offsetX / PL_IU_PER_MM, + currpoint.y - offsetY / PL_IU_PER_MM ); m_Data += strbuf; if( jj++ > 4 ) @@ -400,8 +400,8 @@ void BITMAPCONV_INFO::outputOnePolygon( SHAPE_LINE_CHAIN& aPolygon, const char* // Close polygon strbuf = fmt::format( " (xy {:.3f} {:.3f}) )\n", - ( startpoint.x - offsetX ) / PL_IU_PER_MM, - ( startpoint.y - offsetY ) / PL_IU_PER_MM ); + startpoint.x - offsetX / PL_IU_PER_MM, + startpoint.y - offsetY / PL_IU_PER_MM ); m_Data += strbuf; break;