summaryrefslogtreecommitdiffstats
path: root/dive.c
diff options
context:
space:
mode:
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 081c7eb25..98b96b3ff 100644
--- a/dive.c
+++ b/dive.c
@@ -1209,6 +1209,10 @@ static int likely_same_dive(struct dive *a, struct dive *b)
{
int fuzz, match;
+ /* Don't try to merge dives in different trips */
+ if (a->divetrip && b->divetrip && a->divetrip != b->divetrip)
+ return 0;
+
/*
* Do some basic sanity testing of the values we
* have filled in during 'fixup_dive()'