PCB_TEXT::TransformTextToPolySet() fix a typo that can creates a *lot* of

segments in polygon.
Fixes #15161
https://gitlab.com/kicad/code/kicad/-/issues/15161
This commit is contained in:
jean-pierre charras 2023-07-11 13:12:47 +02:00
parent 171c44507a
commit 10efb6e55a
1 changed files with 4 additions and 1 deletions

View File

@ -352,7 +352,10 @@ void PCB_TEXT::TransformTextToPolySet( SHAPE_POLY_SET& aBuffer, int aClearance,
else
{
if( aClearance > 0 )
textShape.Inflate( aClearance, aClearance );
{
const int arc2segmentCount = 16;
textShape.Inflate( aClearance, arc2segmentCount );
}
aBuffer.Append( textShape );
}