From 10efb6e55a06e87529ce020f7b00806e73de6aef Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Tue, 11 Jul 2023 13:12:47 +0200 Subject: [PATCH] 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 --- pcbnew/pcb_text.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pcbnew/pcb_text.cpp b/pcbnew/pcb_text.cpp index a7379c5d75..43f5fc65c4 100644 --- a/pcbnew/pcb_text.cpp +++ b/pcbnew/pcb_text.cpp @@ -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 ); }