From b12ede529f9686d893d9aa2f0b74d51c0630b507 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sat, 5 Mar 2016 15:37:47 +0200 Subject: [PATCH] Fixed bug with wrong last spline path angle. --HG-- branch : feature --- src/libs/vgeometry/vsplinepath.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/vgeometry/vsplinepath.cpp b/src/libs/vgeometry/vsplinepath.cpp index 4ee10ca55..8928ef402 100644 --- a/src/libs/vgeometry/vsplinepath.cpp +++ b/src/libs/vgeometry/vsplinepath.cpp @@ -74,7 +74,7 @@ VSplinePath::VSplinePath(const QVector &points, qreal kCurve, qui newPoints[i-1].SetLength2(spl.GetC1Length(), spl.GetC1LengthFormula()); newPoints[i].SetP(p2.P()); - newPoints[i].SetAngle2(p2.Angle1(), spl.GetEndAngleFormula()); + newPoints[i].SetAngle1(p2.Angle1(), spl.GetEndAngleFormula()); newPoints[i].SetLength1(spl.GetC2Length(), spl.GetC2LengthFormula()); }