From 8f5cfb7050c128fe64b92e89bc01a2815d3be364 Mon Sep 17 00:00:00 2001 From: dismine Date: Fri, 17 Jan 2014 20:02:24 +0200 Subject: [PATCH] Changed name of splinePath. --HG-- branch : develop --- src/geometry/vsplinepath.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/geometry/vsplinepath.cpp b/src/geometry/vsplinepath.cpp index a3a350a28..18c525373 100644 --- a/src/geometry/vsplinepath.cpp +++ b/src/geometry/vsplinepath.cpp @@ -44,13 +44,9 @@ void VSplinePath::append(const VSplinePoint &point) { path.append(point); _name = QString("SplPath"); - for (qint32 i = 1; i <= this->Count(); ++i) + for (qint32 i = 0; i < path.size(); ++i) { - VSpline spl = this->GetSpline(i); - VPointF first = spl.GetP1(); - VPointF second = spl.GetP4(); - QString splName = QString("_%1_%2").arg(first.name(), second.name()); - _name.append(splName); + _name.append(QString("_%1").arg(path[i].P().name())); } }