summaryrefslogtreecommitdiffstats
path: root/qt-ui/diveplanner.cpp
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2013-12-07 16:25:42 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-12-07 08:09:05 -0800
commitbb979260b08b28a0388c30534c773cb51d0b0b40 (patch)
tree07cc465741b4db655fc3a0c888ce5e37a432caf9 /qt-ui/diveplanner.cpp
parent90634b3814f72d2f234ea3b8ce2d63a2b8500aa6 (diff)
downloadsubsurface-bb979260b08b28a0388c30534c773cb51d0b0b40.tar.gz
Fix gas for start dp
It previously always started with o2 in air, now we start with 0 as its the same default as in the cylinders too, which fixes a uninitialized index there too. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/diveplanner.cpp')
-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 6f7b063bf..7b607abcc 100644
--- a/qt-ui/diveplanner.cpp
+++ b/qt-ui/diveplanner.cpp
@@ -1393,7 +1393,7 @@ void DivePlannerPointsModel::createTemporaryPlan()
// Get the user-input and calculate the dive info
// Not sure if this is the place to create the diveplan...
// We just start with a surface node at time = 0
- struct divedatapoint *dp = create_dp(0, 0, 209, 0, 0);
+ struct divedatapoint *dp = create_dp(0, 0, 0, 0, 0);
dp->entered = TRUE;
diveplan.dp = dp;
int lastIndex = -1;