diff options
author | Henrik Brautaset Aronsen <subsurface@henrik.synth.no> | 2014-07-10 22:57:32 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-07-10 16:19:06 -0700 |
commit | a99349814c20b68c7356f414da0a5d6edadd304a (patch) | |
tree | 65a9bf6c9860654ce1df527fde6d2f942fd1c44e /qt-ui/diveplanner.cpp | |
parent | 6fa996a8833921b695f9dbb2306cf1a3a397b485 (diff) | |
download | subsurface-a99349814c20b68c7356f414da0a5d6edadd304a.tar.gz |
Use gasmix getters in diveplanner.cpp as well
Signed-off-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/diveplanner.cpp')
-rw-r--r-- | qt-ui/diveplanner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp index dded7cb44..0ea157867 100644 --- a/qt-ui/diveplanner.cpp +++ b/qt-ui/diveplanner.cpp @@ -35,7 +35,7 @@ QString gasToStr(struct gasmix gas) { - uint o2 = (gas.o2.permille + 5) / 10, he = (gas.he.permille + 5) / 10; + uint o2 = (get_o2(&gas) + 5) / 10, he = (get_he(&gas) + 5) / 10; QString result = gasmix_is_air(&gas) ? QObject::tr("AIR") : he == 0 ? QString("EAN%1").arg(o2, 2, 10, QChar('0')) : QString("%1/%2").arg(o2).arg(he); return result; } |