summaryrefslogtreecommitdiffhomepage
path: root/spline-widget/spline.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'spline-widget/spline.cpp')
-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 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<QPointF> ret_list;
ret_list.reserve(sz);