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:
Giorgio Marzano 2015-10-05 17:13:06 +02:00 committed by Dirk Hohndel
parent c378df81ab
commit c6eb747d0d

4
dive.c
View file

@ -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);