aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/diveplanner.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-08 18:12:26 +0900
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-08 18:12:26 +0900
commitbf0bd88226508ca9c2dc8941cde82f72cbe1d371 (patch)
tree5ae70f531037ecae10e9d9e72db2d999ba2b4beb /qt-ui/diveplanner.cpp
parent460aa4c1bdee64f25e1c846ac9a6182e4e8e9820 (diff)
downloadsubsurface-bf0bd88226508ca9c2dc8941cde82f72cbe1d371.tar.gz
Correctly identify air
Because of rounding issues we need to use our macro to test for air (especially since the events store gas percentages and not gas permille). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/diveplanner.cpp')
-rw-r--r--qt-ui/diveplanner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp
index 39db8f431..2b4b1d1d2 100644
--- a/qt-ui/diveplanner.cpp
+++ b/qt-ui/diveplanner.cpp
@@ -41,7 +41,7 @@ QStringListModel *airTypes() {
}
QString strForAir(const divedatapoint& p) {
- return p.o2 == 209 ? QObject::tr("AIR")
+ return is_air(p.o2, p.he) ? QObject::tr("AIR")
: p.o2 == 320 ? QObject::tr("EAN32")
: p.o2 == 360 ? QObject::tr("EAN36")
: QObject::tr("Choose Gas");