summaryrefslogtreecommitdiffstats
path: root/dive.c
diff options
context:
space:
mode:
Diffstat (limited to 'dive.c')
-rw-r--r--dive.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/dive.c b/dive.c
index 1f3f5fd0b..950948b59 100644
--- a/dive.c
+++ b/dive.c
@@ -607,6 +607,7 @@ static void fixup_dive_dc(struct dive *dive, struct divecomputer *dc)
end = time;
if (depth > SURFACE_THRESHOLD) {
+ end = time;
if (start < 0)
start = lasttime;
if (depth > maxdepth)