mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
40bdd607c0
commit
5fa2851bdf
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue