summaryrefslogtreecommitdiffstats
path: root/backend-shared/plannershared.cpp
diff options
context:
space:
mode:
authorGravatar jan Iversen <jan@casacondor.com>2019-12-30 15:48:49 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-12-31 04:32:34 +0900
commit694fcffa6e3c9cff32b1934b1b5779a1a0aaa83c (patch)
tree7d6c7c886494fccb47162e9fe845e00ed563f60f /backend-shared/plannershared.cpp
parenta85b0896b415cc4e7b69dbe142fed63bed935e7a (diff)
downloadsubsurface-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/plannershared.cpp')
-rw-r--r--backend-shared/plannershared.cpp2
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)
{