Drop the first point of an arc when building an outline when there's a previous point that's being changed

Fixes https://gitlab.com/kicad/code/kicad/-/issues/18125
This commit is contained in:
Marek Roszko 2024-05-31 18:40:06 -04:00
parent 2f9b10e379
commit 8b4253cda4
1 changed files with 5 additions and 0 deletions

View File

@ -354,6 +354,11 @@ bool doConvertOutlineToPolygon( std::vector<PCB_SHAPE*>& aShapeList, SHAPE_POLY_
SHAPE_LINE_CHAIN arcChain;
arcChain.Append( sarc, aErrorMax );
// if this arc is after another object, pop off the first point
// the previous point from the last object should be already close enough as part of chaining
if( prevGraphic != nullptr )
arcChain.Remove( 0 );
if( !aAllowUseArcsInPolygons )
arcChain.ClearArcs();