PCB_TEXT::TransformTextToPolySet(): fix incorrect param when calling Inflate()

This incorrect value created hang when clicking on a pcb text.
This commit is contained in:
jean-pierre charras 2023-05-29 14:20:57 +02:00
parent a4f16423c8
commit ef4dded915
1 changed files with 5 additions and 1 deletions

View File

@ -512,7 +512,11 @@ void PCB_TEXT::TransformTextToPolySet( SHAPE_POLY_SET& aBuffer, int aClearance,
else
{
if( aClearance > 0 )
textShape.Inflate( aClearance, aClearance );
{
// Number of segments to approximate a circle when inflating a polygon
const int circleSegmentsCount = 16;
textShape.Inflate( aClearance, circleSegmentsCount );
}
aBuffer.Append( textShape );
}