summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--spline-widget/spline.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/spline-widget/spline.cpp b/spline-widget/spline.cpp
index 8d7159ee..1f457715 100644
--- a/spline-widget/spline.cpp
+++ b/spline-widget/spline.cpp
@@ -204,7 +204,7 @@ void spline::update_interp_data()
{
const double x = points[0].x();
const double y = points[0].y();
- const int max = clamp(int(x * precision(points)), 0, value_count-1);
+ const int max = clamp(int(x * precision(points)), 1, value_count-1);
for (int k = 0; k <= max; k++)
{
if (k < value_count)