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:
parent
2f9b10e379
commit
8b4253cda4
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue