mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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>
This commit is contained in:
parent
460aa4c1bd
commit
bf0bd88226
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue