Formatting.

This commit is contained in:
Jeff Young 2021-04-08 23:50:40 +01:00
parent e1a5d4e0ba
commit e04c820442
1 changed files with 9 additions and 9 deletions

View File

@ -224,15 +224,15 @@ void TransformRoundRectToPolygon( SHAPE_POLY_SET& aCornerBuffer, const wxSize& a
auto genArc =
[&]( const wxPoint& aCenter, int aStart, int aEnd )
{
for( int angle = aStart + delta; angle < aEnd; angle += delta )
{
wxPoint pt( -radius, 0 );
RotatePoint( &pt, angle );
pt += aCenter;
outline.Append( pt.x, pt.y );
}
};
{
for( int angle = aStart + delta; angle < aEnd; angle += delta )
{
wxPoint pt( -radius, 0 );
RotatePoint( &pt, angle );
pt += aCenter;
outline.Append( pt.x, pt.y );
}
};
outline.NewOutline();