diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-04-29 22:39:33 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-04-29 22:39:33 -0700 |
commit | 0e49e61ddc3cf181e318e923403f0927f884c9e1 (patch) | |
tree | 8c66db261c1ead7766467198728d83aa0e68e671 | |
parent | bcdd6192fe457c878128f07125b32144a3ebe6bd (diff) | |
download | subsurface-0e49e61ddc3cf181e318e923403f0927f884c9e1.tar.gz |
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 <dirk@hohndel.org>
-rw-r--r-- | qt-ui/profile/diveeventitem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |