diff options
author | jan Iversen <jan@casacondor.com> | 2019-12-30 15:48:49 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-12-31 04:32:34 +0900 |
commit | 694fcffa6e3c9cff32b1934b1b5779a1a0aaa83c (patch) | |
tree | 7d6c7c886494fccb47162e9fe845e00ed563f60f /backend-shared | |
parent | a85b0896b415cc4e7b69dbe142fed63bed935e7a (diff) | |
download | subsurface-694fcffa6e3c9cff32b1934b1b5779a1a0aaa83c.tar.gz |
backend: correct deco2() problem in plannerShared
Divided by 1000 (int) instead of 1000.0 (float)
which caused precision problems.
Signed-off-by: Jan Iversen <jan@casacondor.com>
Diffstat (limited to 'backend-shared')
-rw-r--r-- | backend-shared/plannershared.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend-shared/plannershared.cpp b/backend-shared/plannershared.cpp index d9a3ff01e..d516e96b7 100644 --- a/backend-shared/plannershared.cpp +++ b/backend-shared/plannershared.cpp @@ -236,7 +236,7 @@ void plannerShared::set_bottompo2(double value) double plannerShared::decopo2() { - return qPrefDivePlanner::decopo2() / 1000; + return qPrefDivePlanner::decopo2() / 1000.0; } void plannerShared::set_decopo2(double value) { |