diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2014-10-17 05:30:58 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-10-17 05:30:58 +0200 |
commit | 6597a6aa3aac30fa747c115705d3430f731ae6ca (patch) | |
tree | 54516afea8c1f2f1496087167d149d67c41b2693 /qfunctionconfigurator/functionconfig.cpp | |
parent | a83723b75e35e0a63ad5ed7b205aaae1e72a0cb7 (diff) |
default to 1:1 lienar mapping
Issue: #46
Diffstat (limited to 'qfunctionconfigurator/functionconfig.cpp')
-rw-r--r-- | qfunctionconfigurator/functionconfig.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qfunctionconfigurator/functionconfig.cpp b/qfunctionconfigurator/functionconfig.cpp index a4d03ed8..a0715754 100644 --- a/qfunctionconfigurator/functionconfig.cpp +++ b/qfunctionconfigurator/functionconfig.cpp @@ -179,6 +179,10 @@ void Map::loadSettings(QSettings& settings, const QString& title) { } settings.endGroup(); + + if (max == 0) + points.append(QPointF(maxInput(), maxOutput())); + cur.input = points; reload(); saved = cur; |