Fix errant removal of parens.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/15744
This commit is contained in:
Jeff Young 2023-10-21 20:08:30 +01:00
parent 79fb832b9e
commit c75b84f76e
1 changed files with 4 additions and 4 deletions

View File

@ -387,8 +387,8 @@ void BITMAPCONV_INFO::outputOnePolygon( SHAPE_LINE_CHAIN& aPolygon, const char*
{
currpoint = aPolygon.CPoint( ii );
strbuf = fmt::format( " (xy {:.3f} {:.3f})",
currpoint.x - offsetX / PL_IU_PER_MM,
currpoint.y - offsetY / PL_IU_PER_MM );
( 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;