summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-10-17 05:30:58 +0200
committerStanislaw Halik <sthalik@misaki.pl>2014-10-17 05:30:58 +0200
commit6597a6aa3aac30fa747c115705d3430f731ae6ca (patch)
tree54516afea8c1f2f1496087167d149d67c41b2693
parenta83723b75e35e0a63ad5ed7b205aaae1e72a0cb7 (diff)
default to 1:1 lienar mapping
Issue: #46
-rw-r--r--qfunctionconfigurator/functionconfig.cpp4
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;