From 875a401f7d99a31f13ae901b445c930803473dbe Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 26 May 2016 13:23:58 +0200 Subject: spline-widget: fix lack of initialization in one ctor --- spline-widget/functionconfig.h | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'spline-widget/functionconfig.h') diff --git a/spline-widget/functionconfig.h b/spline-widget/functionconfig.h index 145ee14e..cac3c65c 100644 --- a/spline-widget/functionconfig.h +++ b/spline-widget/functionconfig.h @@ -39,23 +39,15 @@ private: MyMutex _mutex; QPointF last_input_value; - volatile bool activep; double max_x; double max_y; - + volatile bool activep; State cur, saved; public: double maxInput() const { return max_x; } double maxOutput() const { return max_y; } Map(); - Map(double maxx, double maxy) - { - setMaxInput(maxx); - setMaxOutput(maxy); - if (cur.input.size() == 0) - cur.input.push_back(QPointF(maxx, maxy)); - reload(); - } + Map(double maxx, double maxy); float getValue(float x); bool getLastPoint(QPointF& point); -- cgit v1.2.3