diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-11-14 12:47:14 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-11-14 12:51:18 +0100 |
commit | 979d1d3cb15f85679ccf5757faf0f1762a096e29 (patch) | |
tree | edba62d47031184b080e2e84b5a03c5510d8d105 /spline | |
parent | 801bb3b40a70b87b6c9e2c1b1d7d2ba2b7ba8d59 (diff) |
spline: remove duplicate logic
Diffstat (limited to 'spline')
-rw-r--r-- | spline/spline.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/spline/spline.cpp b/spline/spline.cpp index 450643ea..cd3daf30 100644 --- a/spline/spline.cpp +++ b/spline/spline.cpp @@ -55,13 +55,12 @@ bundle spline::get_bundle() void spline::clear() { - QMutexLocker l(&_mutex); - s->points = points_t(); - - // XXX TODO check invalidate - points = points_t(); + { + QMutexLocker l(&_mutex); + s->points = {}; + } - validp = false; + invalidate_settings(); } float spline::get_value(double x) |