summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--spline/spline.cpp11
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)