mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 23:13:25 +00:00
Planner: Correctly fill out last_manual_time in fake_dc()
By not filling out this value, entering of manual dives was broken for dive lengths starting with a digit 5 or higher. Fixes #1211 Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
920ff15f71
commit
fc7cb09b37
1 changed files with 3 additions and 0 deletions
|
@ -133,6 +133,9 @@ void fake_dc(struct divecomputer *dc)
|
|||
return;
|
||||
}
|
||||
|
||||
/* Set last manually entered time to the total dive length */
|
||||
dc->last_manual_time = dc->duration;
|
||||
|
||||
/*
|
||||
* We want to fake the profile so that the average
|
||||
* depth ends up correct. However, in the absence of
|
||||
|
|
Loading…
Add table
Reference in a new issue