aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/diveplanner.cpp
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2013-12-07 16:25:41 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-12-07 08:09:05 -0800
commit90634b3814f72d2f234ea3b8ce2d63a2b8500aa6 (patch)
treed04e260845d9ac2371b6b7c6cedc94808d74364a /qt-ui/diveplanner.cpp
parent70a9c280f46998d32f273a5324042cb9fa235614 (diff)
downloadsubsurface-90634b3814f72d2f234ea3b8ce2d63a2b8500aa6.tar.gz
Propagate gas and setpoint from previous point
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.cpp3
1 files changed, 3 insertions, 0 deletions
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