From 3afc4528b32f4b716fbda6394fc74d1e226c36df Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 25 Feb 2017 20:07:43 -0800 Subject: Only honor drop stone mode when planning a dive Signed-off-by: Dirk Hohndel --- qt-models/diveplannermodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-models') diff --git a/qt-models/diveplannermodel.cpp b/qt-models/diveplannermodel.cpp index 7262cf313..fc7e479eb 100644 --- a/qt-models/diveplannermodel.cpp +++ b/qt-models/diveplannermodel.cpp @@ -787,7 +787,7 @@ void DivePlannerPointsModel::createTemporaryPlan() divedatapoint p = at(i); int deltaT = lastIndex != -1 ? p.time - at(lastIndex).time : p.time; lastIndex = i; - if (i == 0 && prefs.drop_stone_mode) { + if (i == 0 && mode == PLAN && prefs.drop_stone_mode) { /* Okay, we add a first segment where we go down to depth */ plan_add_segment(&diveplan, p.depth / prefs.descrate, p.depth, p.cylinderid, p.setpoint, true); deltaT -= p.depth / prefs.descrate; -- cgit v1.2.3-70-g09d2