From 0e49e61ddc3cf181e318e923403f0927f884c9e1 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 29 Apr 2014 22:39:33 -0700 Subject: Fix test for "air" in tooltip display of gaschange The "is_air()" test works when we have the gases in permille, but not in percent. In that case we can just check for He == 0 and O2 == 21. Signed-off-by: Dirk Hohndel --- qt-ui/profile/diveeventitem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt-ui/profile/diveeventitem.cpp b/qt-ui/profile/diveeventitem.cpp index a75b8956d..2f2bec60e 100644 --- a/qt-ui/profile/diveeventitem.cpp +++ b/qt-ui/profile/diveeventitem.cpp @@ -88,7 +88,7 @@ void DiveEventItem::setupToolTipString() name += ": "; if (he) name += QString("%1/%2").arg(o2).arg(he); - else if (is_air(o2, he)) + else if (o2 == 21) // don't use is_air() as that assumes permille name += tr("air"); else name += QString(tr("EAN%1")).arg(o2); -- cgit v1.2.3-70-g09d2