summaryrefslogtreecommitdiffhomepage
path: root/qfunctionconfigurator/functionconfig.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-08-03 14:52:19 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-08-03 14:52:19 +0200
commit03a164ed74d616e8d5203142ec7e9738c8aae547 (patch)
tree0c18798947a7a1e8df195ab3c52303511e490bbc /qfunctionconfigurator/functionconfig.cpp
parent86df1eb3f75fcc28d215bb0e42844b95a31a1f29 (diff)
parent149403bf828e83b91e049eca1a4e89ef5874b974 (diff)
Merge branch 'unstable' into trackhat-ui
* unstable: move header to right place shortcuts: whole is _WIN32, don't check twice nested qfc: move division last
Diffstat (limited to 'qfunctionconfigurator/functionconfig.cpp')
-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;
}
}