From c6eb747d0dccad002f63ab8aef0518e2dfe10a3e Mon Sep 17 00:00:00 2001 From: Giorgio Marzano Date: Mon, 5 Oct 2015 17:13:06 +0200 Subject: [PATCH] Fix wrong max depth value in split dives Signed-off-by: Giorgio Marzano Signed-off-by: Dirk Hohndel --- dive.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dive.c b/dive.c index ea97833ea..2ed90f284 100644 --- a/dive.c +++ b/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);