diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-12-26 01:41:17 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-12-26 01:41:17 +0100 |
commit | fd3d77ecd23a605822890cf049077114cda3368a (patch) | |
tree | fbaa7612c459005d645e37baa2d3874d6aa3ddb4 /qfunctionconfigurator | |
parent | 61b66d8689005dacf43d0ea42165b695e089fc28 (diff) |
qfc: prevent default to nonsense on broken config
Diffstat (limited to 'qfunctionconfigurator')
-rw-r--r-- | qfunctionconfigurator/functionconfig.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qfunctionconfigurator/functionconfig.cpp b/qfunctionconfigurator/functionconfig.cpp index b937d95e..97a6db24 100644 --- a/qfunctionconfigurator/functionconfig.cpp +++ b/qfunctionconfigurator/functionconfig.cpp @@ -235,8 +235,8 @@ void FunctionConfig::loadSettings(QSettings& settings) { int max = settings.value("point-count", 0).toInt(); for (int i = 0; i < max; i++) { - newPoint = QPointF(settings.value(QString("point-%1-x").arg(i), (i + 1) * _max_Input/2).toFloat(), - settings.value(QString("point-%1-y").arg(i), (i + 1) * _max_Output/2).toFloat()); + newPoint = QPointF(settings.value(QString("point-%1-x").arg(i), 0).toFloat(), + settings.value(QString("point-%1-y").arg(i), 0).toFloat()); // // Make sure the new Point fits in the Function Range. // Maybe this can be improved? |