summaryrefslogtreecommitdiffstats
path: root/dive.c
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2015-01-30 22:40:48 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-30 16:55:20 -0800
commit129b54093b38293ede4a88d49432099b98d5eccd (patch)
treee9d0acf7724236e374775c0e5ec988c1007bfe59 /dive.c
parenta6d9a559c1a533dab2b326eac24a41e8c2cdbf9e (diff)
downloadsubsurface-129b54093b38293ede4a88d49432099b98d5eccd.tar.gz
Merge pictures when downloading additional DC
Fixes #822 Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
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 5732c0f83..ce7619e85 100644
--- a/dive.c
+++ b/dive.c
@@ -2711,6 +2711,7 @@ struct dive *merge_dives(struct dive *a, struct dive *b, int offset, bool prefer
MERGE_MAX(res, a, b, number);
MERGE_NONZERO(res, a, b, cns);
MERGE_NONZERO(res, a, b, visibility);
+ MERGE_NONZERO(res, a, b, picture_list);
taglist_merge(&res->tag_list, a->tag_list, b->tag_list);
merge_equipment(res, a, b);
merge_airtemps(res, a, b);