mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 00:13:24 +00:00
Fix wrong max depth value in split dives
Signed-off-by: Giorgio Marzano <marzano.giorgio@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c378df81ab
commit
c6eb747d0d
1 changed files with 4 additions and 0 deletions
4
dive.c
4
dive.c
|
@ -2911,6 +2911,10 @@ static int split_dive_at(struct dive *dive, int a, int b)
|
|||
event->time.seconds -= t;
|
||||
}
|
||||
}
|
||||
dc1->maxdepth.mm = 0;
|
||||
dc2->maxdepth.mm = 0;
|
||||
d1->maxdepth.mm = 0;
|
||||
d2->maxdepth.mm = 0;
|
||||
|
||||
fixup_dive(d1);
|
||||
fixup_dive(d2);
|
||||
|
|
Loading…
Add table
Reference in a new issue