Browse Source

Step exporter: handle circles correctly

Fixes https://gitlab.com/kicad/code/kicad/-/issues/17137
newinvert
Roberto Fernandez Bautista 2 years ago
parent
commit
a4929f9c27
  1. 2
      pcbnew/exporters/step/step_pcb_model.cpp

2
pcbnew/exporters/step/step_pcb_model.cpp

@ -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…
Cancel
Save