summaryrefslogtreecommitdiffstats
path: root/dive.c
diff options
context:
space:
mode:
Diffstat (limited to 'dive.c')
-rw-r--r--dive.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dive.c b/dive.c
index 4e902d7d2..c81584e65 100644
--- a/dive.c
+++ b/dive.c
@@ -2989,12 +2989,12 @@ bool picture_check_valid(char *filename, int shift_time)
return false;
}
-void dive_create_picture(struct dive *dive, char *filename, int shift_time)
+void dive_create_picture(struct dive *dive, char *filename, int shift_time, bool match_all)
{
timestamp_t timestamp = picture_get_timestamp(filename);
if (!new_picture_for_dive(dive, filename))
return;
- if (!dive_check_picture_time(dive, shift_time, timestamp))
+ if (!match_all && !dive_check_picture_time(dive, shift_time, timestamp))
return;
struct picture *picture = alloc_picture();