summaryrefslogtreecommitdiffhomepage
path: root/spline
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-11-14 12:47:14 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-11-14 12:51:18 +0100
commit979d1d3cb15f85679ccf5757faf0f1762a096e29 (patch)
treeedba62d47031184b080e2e84b5a03c5510d8d105 /spline
parent801bb3b40a70b87b6c9e2c1b1d7d2ba2b7ba8d59 (diff)
spline: remove duplicate logic
Diffstat (limited to 'spline')
-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)