mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-13 17:53:11 +02:00
Properly append corners to created poly
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21633
This commit is contained in:
parent
e85a8056f5
commit
f84ba3004d
@ -230,6 +230,17 @@ static void processClosedShape( PCB_SHAPE* aShape, SHAPE_LINE_CHAIN& aContour,
|
||||
SHAPE_POLY_SET poly;
|
||||
rr.TransformToPolygon( poly );
|
||||
aContour.Append( poly.Outline( 0 ) );
|
||||
|
||||
for( int ii = 1; ii < aContour.PointCount(); ++ii )
|
||||
{
|
||||
aShapeOwners[ std::make_pair( aContour.CPoint( ii - 1 ),
|
||||
aContour.CPoint( ii ) ) ] = aShape;
|
||||
}
|
||||
|
||||
if( !aAllowUseArcsInPolygons )
|
||||
aContour.ClearArcs();
|
||||
|
||||
aContour.SetClosed( true );
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user