diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-02-25 20:07:43 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-03-04 12:16:49 -0800 |
commit | 3afc4528b32f4b716fbda6394fc74d1e226c36df (patch) | |
tree | 13f80415625dc8efdb8f4a00991e09b5444b6a99 /qt-models | |
parent | 03eef5b0c2c1bb2d4ebfd6727b61d38cd640ba3f (diff) | |
download | subsurface-3afc4528b32f4b716fbda6394fc74d1e226c36df.tar.gz |
Only honor drop stone mode when planning a dive
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-models')
-rw-r--r-- | qt-models/diveplannermodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |