From 979d1d3cb15f85679ccf5757faf0f1762a096e29 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 14 Nov 2018 12:47:14 +0100 Subject: spline: remove duplicate logic --- spline/spline.cpp | 11 +++++------ 1 file 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) -- cgit v1.2.3