From bf0bd88226508ca9c2dc8941cde82f72cbe1d371 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 8 Nov 2013 18:12:26 +0900 Subject: 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 --- qt-ui/diveplanner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-ui/diveplanner.cpp') 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"); -- cgit v1.2.3-70-g09d2