summaryrefslogtreecommitdiffstats
path: root/qt-ui/models.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-25 21:36:30 +0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-25 21:41:58 +0800
commit7f3efbdc98deeb4e4bcd481335761b6439b9552c (patch)
tree429daf20fa70a9148a4253914e705d444ea58bf8 /qt-ui/models.cpp
parent65c5d6815cf7c78231abd76440bb5bab54d9d51c (diff)
downloadsubsurface-7f3efbdc98deeb4e4bcd481335761b6439b9552c.tar.gz
Make gas mod be reasonable for users of imperial units as well
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/models.cpp')
-rw-r--r--qt-ui/models.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp
index a5a1f5bff..823619f64 100644
--- a/qt-ui/models.cpp
+++ b/qt-ui/models.cpp
@@ -251,7 +251,7 @@ bool CylindersModel::setData(const QModelIndex &index, const QVariant &value, in
cyl->gasmix.o2 = string_to_fraction(vString.toUtf8().data());
pressure_t modpO2;
modpO2.mbar = prefs.decopo2;
- cyl->depth = gas_mod(&cyl->gasmix, modpO2, 3000);
+ cyl->depth = gas_mod(&cyl->gasmix, modpO2, M_OR_FT(3,10));
changed = true;
}
break;