summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2014-07-17 21:16:50 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-18 10:13:52 -0700
commit7806dbbd9edd429a82bed5d98f8750db0900d83a (patch)
tree051a8a1fbe0a537a8065bf016e1a6db1e4bc34c3 /qt-ui
parent9eeeba468a5b4913cf889801690dc3aa834c7780 (diff)
downloadsubsurface-7806dbbd9edd429a82bed5d98f8750db0900d83a.tar.gz
Convert get_gas_from_events to get_gas_at_time
This converts the get_gas_from_events to a get_gas_at_time function that actually maps our events to what cylinder and thus gas we are breathing at that time. [Dirk Hohndel: fixed to actually use the gas that was looked up (and make things compile)] Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/diveplanner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp
index f68214b83..8bd32f457 100644
--- a/qt-ui/diveplanner.cpp
+++ b/qt-ui/diveplanner.cpp
@@ -112,7 +112,7 @@ void DivePlannerPointsModel::loadFromDive(dive *d)
const sample &s = d->dc.sample[i];
if (s.time.seconds == 0)
continue;
- get_gas_from_events(&d->dc, lasttime, &gas);
+ get_gas_at_time(d, &d->dc, lasttime, &gas);
plannerModel->addStop(s.depth.mm, s.time.seconds, &gas, 0, true);
lasttime = s.time;
}