Fix errant removal of parens.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15744
This commit is contained in:
parent
79fb832b9e
commit
c75b84f76e
|
@ -387,8 +387,8 @@ void BITMAPCONV_INFO::outputOnePolygon( SHAPE_LINE_CHAIN& aPolygon, const char*
|
||||||
{
|
{
|
||||||
currpoint = aPolygon.CPoint( ii );
|
currpoint = aPolygon.CPoint( ii );
|
||||||
strbuf = fmt::format( " (xy {:.3f} {:.3f})",
|
strbuf = fmt::format( " (xy {:.3f} {:.3f})",
|
||||||
currpoint.x - offsetX / PL_IU_PER_MM,
|
( currpoint.x - offsetX ) / PL_IU_PER_MM,
|
||||||
currpoint.y - offsetY / PL_IU_PER_MM );
|
( currpoint.y - offsetY ) / PL_IU_PER_MM );
|
||||||
m_Data += strbuf;
|
m_Data += strbuf;
|
||||||
|
|
||||||
if( jj++ > 4 )
|
if( jj++ > 4 )
|
||||||
|
@ -400,8 +400,8 @@ void BITMAPCONV_INFO::outputOnePolygon( SHAPE_LINE_CHAIN& aPolygon, const char*
|
||||||
|
|
||||||
// Close polygon
|
// Close polygon
|
||||||
strbuf = fmt::format( " (xy {:.3f} {:.3f}) )\n",
|
strbuf = fmt::format( " (xy {:.3f} {:.3f}) )\n",
|
||||||
startpoint.x - offsetX / PL_IU_PER_MM,
|
( startpoint.x - offsetX ) / PL_IU_PER_MM,
|
||||||
startpoint.y - offsetY / PL_IU_PER_MM );
|
( startpoint.y - offsetY ) / PL_IU_PER_MM );
|
||||||
m_Data += strbuf;
|
m_Data += strbuf;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue