From 90634b3814f72d2f234ea3b8ce2d63a2b8500aa6 Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Sat, 7 Dec 2013 16:25:41 +0100 Subject: Propagate gas and setpoint from previous point Signed-off-by: Anton Lundin Signed-off-by: Dirk Hohndel --- qt-ui/diveplanner.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'qt-ui/diveplanner.cpp') diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp index a66256a6f..6f7b063bf 100644 --- a/qt-ui/diveplanner.cpp +++ b/qt-ui/diveplanner.cpp @@ -1194,6 +1194,9 @@ int DivePlannerPointsModel::addStop(int milimeters, int seconds, int o2, int he, struct divedatapoint& t = divepoints.last(); milimeters = t.depth; seconds = t.time + 600; // 10 minutes. + o2 = t.o2; + he = t.he; + ccpoint = t.po2; } else if (seconds == 0 && milimeters == 0 && row == 0) { milimeters = M_OR_FT(5, 15); // 5m / 15ft seconds = 600; // 10 min -- cgit v1.2.3-70-g09d2