diff options
| author | 2014-11-03 22:37:59 +0100 | |
|---|---|---|
| committer | 2014-11-03 14:32:17 -0800 | |
| commit | 5fa2851bdf9bb3968054bf288f96cc832196ba35 (patch) | |
| tree | 9d987ca492eadeecf38ab79dbc342e1fd7d36644 /qt-ui | |
| parent | 40bdd607c0258270e6289bdb725d3366bcad1e62 (diff) | |
| download | subsurface-5fa2851bdf9bb3968054bf288f96cc832196ba35.tar.gz | |
Start with 0 when computing maxdepth when fixing up
This is needed to get the correct maxdepth when replanning
leads to a shallower dive.
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
| -rw-r--r-- | qt-ui/diveplanner.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp index d490de3b4..4a299ca98 100644 --- a/qt-ui/diveplanner.cpp +++ b/qt-ui/diveplanner.cpp @@ -1185,6 +1185,8 @@ void DivePlannerPointsModel::createPlan() } else if (current_dive && displayed_dive.id == current_dive->id) { // we are replanning a dive - make sure changes are reflected // correctly in the dive structure and copy it back into the dive table + displayed_dive.maxdepth.mm = 0; + displayed_dive.dc.maxdepth.mm = 0; fixup_dive(&displayed_dive); copy_dive(&displayed_dive, current_dive); } |