summaryrefslogtreecommitdiffhomepage
path: root/spline-widget/functionconfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'spline-widget/functionconfig.h')
-rw-r--r--spline-widget/functionconfig.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/spline-widget/functionconfig.h b/spline-widget/functionconfig.h
index 97a80cac..145ee14e 100644
--- a/spline-widget/functionconfig.h
+++ b/spline-widget/functionconfig.h
@@ -30,7 +30,7 @@ private:
struct State {
QList<QPointF> input;
- std::vector<float> data;
+ std::vector<float> data;
};
int precision() const;
@@ -52,6 +52,8 @@ public:
{
setMaxInput(maxx);
setMaxOutput(maxy);
+ if (cur.input.size() == 0)
+ cur.input.push_back(QPointF(maxx, maxy));
reload();
}