aboutsummaryrefslogtreecommitdiffstats
path: root/qt-models/cylindermodel.cpp
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2015-07-06 00:07:39 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-05 15:53:49 -0700
commita7d18a9fa649e1f6e9b7d553e286abce8a430b9a (patch)
tree61737419a9b77a6737d931fc4e195579fcb19e70 /qt-models/cylindermodel.cpp
parent9c6a3a7ff387578ddede2e69d8b994a11cf8eaee (diff)
downloadsubsurface-a7d18a9fa649e1f6e9b7d553e286abce8a430b9a.tar.gz
Round MOD of gas rather than truncate
For the proper calculation, we need to take salinity and surface pressure into account (rather than depth = bar * 10 - 10) Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-models/cylindermodel.cpp')
-rw-r--r--qt-models/cylindermodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-models/cylindermodel.cpp b/qt-models/cylindermodel.cpp
index a3ab34513..8786f7889 100644
--- a/qt-models/cylindermodel.cpp
+++ b/qt-models/cylindermodel.cpp
@@ -218,7 +218,7 @@ bool CylindersModel::setData(const QModelIndex &index, const QVariant &value, in
prefs.o2consumption / prefs.decosac / prefs.pscr_ratio;
else
modpO2.mbar = prefs.decopo2;
- cyl->depth = gas_mod(&cyl->gasmix, modpO2, M_OR_FT(3, 10));
+ cyl->depth = gas_mod(&cyl->gasmix, modpO2, &displayed_dive, M_OR_FT(3, 10));
changed = true;
}
break;