kicad2step: fix incorrect Bezier curve handling.

Fixes #7930
https://gitlab.com/kicad/code/kicad/issues/7930
This commit is contained in:
jean-pierre charras 2021-03-22 10:58:07 +01:00
parent c5c348538e
commit 6b1658a098
1 changed files with 4 additions and 4 deletions

View File

@ -119,10 +119,10 @@ bool KICADCURVE::Read( SEXPR::SEXPR* aEntry, CURVE_TYPE aCurveType )
{
switch( ii )
{
case 0: m_start = coord; break;
case 1: m_bezierctrl1 = coord; break;
case 2: m_bezierctrl2 = coord; break;
case 3: m_end = coord; break;
case 1: m_start = coord; break;
case 2: m_bezierctrl1 = coord; break;
case 3: m_bezierctrl2 = coord; break;
case 4: m_end = coord; break;
default:
break;
}