From ad496a028cee3e119177a3a7d9e9f4f0edb3f96c Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 7 May 2017 19:23:32 +0200 Subject: spline: add comment --- spline/spline.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spline/spline.cpp b/spline/spline.cpp index 3c1c3eba..7ca8147c 100644 --- a/spline/spline.cpp +++ b/spline/spline.cpp @@ -447,6 +447,9 @@ double spline::bucket_size_coefficient(const QList& points) const if (unlikely(max_x < eps)) return 0; + // needed to fill the buckets up to the last control point. + // space between that point and max_x doesn't matter. + const int sz = element_count(points, max_x); const double last_x = sz ? points[sz - 1].x() : max_x; -- cgit v1.2.3