diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-01-29 11:12:36 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-01-29 11:12:36 +0100 |
commit | ea928797eb5f0e72cb68490a6c7956362c41560a (patch) | |
tree | 2125728eb470cb8ac84ed0de7689dfd99a7b7e5d /spline-widget/spline.cpp | |
parent | f53cc15b1209140519371940f97c696d6166b7b8 (diff) |
spline-widget/spline: oops, don't eat points outta range in recompute()
Diffstat (limited to 'spline-widget/spline.cpp')
-rw-r--r-- | spline-widget/spline.cpp | 2 |
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); |