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:
+5
-1
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user