From ea928797eb5f0e72cb68490a6c7956362c41560a Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 29 Jan 2017 11:12:36 +0100 Subject: spline-widget/spline: oops, don't eat points outta range in recompute() --- spline-widget/spline.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spline-widget') diff --git a/spline-widget/spline.cpp b/spline-widget/spline.cpp index 70fe0c31..02453420 100644 --- a/spline-widget/spline.cpp +++ b/spline-widget/spline.cpp @@ -392,7 +392,7 @@ void spline::recompute() if (list != s->points) s->points = list; - const int sz = element_count(list, max_x); + const int sz = list.size(); QList ret_list; ret_list.reserve(sz); -- cgit v1.2.3