summaryrefslogtreecommitdiffhomepage
path: root/spline
diff options
context:
space:
mode:
Diffstat (limited to 'spline')
-rw-r--r--spline/spline.cpp3
1 files changed, 3 insertions, 0 deletions
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<QPointF>& 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;