[PATCH 5/7] Fix gas for start dp

Anton Lundin glance at acc.umu.se
Sat Dec 7 07:25:42 UTC 2013


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 at acc.umu.se>
---
 qt-ui/diveplanner.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp
index 6f7b063..7b607ab 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;
-- 
1.8.3.2



More information about the subsurface mailing list