mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-15 10:43:15 +02:00
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:
parent
a4f16423c8
commit
ef4dded915
@ -512,7 +512,11 @@ void PCB_TEXT::TransformTextToPolySet( SHAPE_POLY_SET& aBuffer, int aClearance,
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
if( aClearance > 0 )
|
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 );
|
aBuffer.Append( textShape );
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user