summaryrefslogtreecommitdiffhomepage
path: root/qfunctionconfigurator
diff options
context:
space:
mode:
Diffstat (limited to 'qfunctionconfigurator')
-rwxr-xr-x[-rw-r--r--]qfunctionconfigurator/functionconfig.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qfunctionconfigurator/functionconfig.cpp b/qfunctionconfigurator/functionconfig.cpp
index b597a902..c97aec16 100644..100755
--- a/qfunctionconfigurator/functionconfig.cpp
+++ b/qfunctionconfigurator/functionconfig.cpp
@@ -136,7 +136,7 @@ void Map::reload() {
const n y_ = std::min<n>(max_y, std::max<n>(y, 0));
- data[x] = y_ / max_y * integral_max;
+ data[x] = y_ * integral_max / max_y;
}
}