Step exporter: handle circles correctly
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17137
This commit is contained in:
parent
ff4b59afeb
commit
63ffca0173
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue