diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-11-14 21:06:31 +0900 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-11-14 21:06:31 +0900 |
commit | 9c90d6790a9cb38521beaedaffd1e847784b4088 (patch) | |
tree | 631948a983edc974568bdbaeccfd0d1ac42d65fd /qt-ui/diveplanner.cpp | |
parent | ed41d5a74490b9af03ece57015d6867bbf00df14 (diff) | |
download | subsurface-9c90d6790a9cb38521beaedaffd1e847784b4088.tar.gz |
Fix some random compiler warnings
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 37005e149..0cb3a67f3 100644 --- a/qt-ui/diveplanner.cpp +++ b/qt-ui/diveplanner.cpp @@ -1321,7 +1321,7 @@ void DivePlannerPointsModel::tanksUpdated() divedatapoint& p = divepoints[j]; int o2 = oldGases.at(i).first; int he = oldGases.at(i).second; - if (p.o2 == o2 && p.he == he || + if ((p.o2 == o2 && p.he == he) || (is_air(p.o2, p.he) && (is_air(o2, he) || (o2 == 0 && he == 0)))) { p.o2 = gases.at(i).first; p.he = gases.at(i).second; |