diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-05-26 13:23:58 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-05-26 13:23:58 +0200 |
commit | 875a401f7d99a31f13ae901b445c930803473dbe (patch) | |
tree | a912db1d2ceb7ecddc650074e52029c4573954fa /spline-widget/functionconfig.h | |
parent | aa54f156f51179025844ab2f864be0333d68539e (diff) |
spline-widget: fix lack of initialization in one ctor
Diffstat (limited to 'spline-widget/functionconfig.h')
-rw-r--r-- | spline-widget/functionconfig.h | 12 |
1 files changed, 2 insertions, 10 deletions
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); |