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>
This commit is contained in:
jan Iversen 2019-12-30 15:48:49 +01:00 committed by Dirk Hohndel
parent a85b0896b4
commit 694fcffa6e

View file

@ -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)
{