Step exporter: handle circles correctly

Fixes https://gitlab.com/kicad/code/kicad/-/issues/17137
This commit is contained in:
Roberto Fernandez Bautista 2024-03-02 19:09:33 +01:00
parent ff4b59afeb
commit 63ffca0173
1 changed files with 1 additions and 1 deletions

View File

@ -769,7 +769,7 @@ bool STEP_PCB_MODEL::MakeShapes( std::vector<TopoDS_Shape>& aShapes, const SHAPE
int nextShape = aChain.NextShape( i );
// If nextShape points to the end, then we have a circle.
if( nextShape != aChain.PointCount() - 1 )
if( nextShape != -1 )
i = nextShape;
}
}