summaryrefslogtreecommitdiffstats
path: root/dive.c
diff options
context:
space:
mode:
authorGravatar Giorgio Marzano <marzano.giorgio@gmail.com>2015-10-05 17:13:06 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-10-06 00:01:29 +0100
commitc6eb747d0dccad002f63ab8aef0518e2dfe10a3e (patch)
tree19765314de145fe18b65c01875dd43310e46ffa7 /dive.c
parentc378df81ab670206c376145b00d9e6694f3786ab (diff)
downloadsubsurface-c6eb747d0dccad002f63ab8aef0518e2dfe10a3e.tar.gz
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>
Diffstat (limited to 'dive.c')
-rw-r--r--dive.c4
1 files changed, 4 insertions, 0 deletions
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);