summaryrefslogtreecommitdiffstats
path: root/save-html.c
diff options
context:
space:
mode:
authorGravatar Gehad Elrobey <gehadelrobey@gmail.com>2015-03-13 15:36:52 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-03-14 18:18:08 -0700
commitec202890b7c86cd3f6d2e5c568a8f4de2b83e793 (patch)
treeafddc60cc3a4a7d1a65562f0c9ce4705b630ad36 /save-html.c
parent7e7cddde8acc603159879ae34501debacbb9b222 (diff)
downloadsubsurface-ec202890b7c86cd3f6d2e5c568a8f4de2b83e793.tar.gz
Make exporting photos with HTML optional
This adds the ability to choose either to export photos or not. Patch is attached. -- regards, Gehad From 6476e1227b72d8297f9aecc2e6cc6f70d07f87ae Mon Sep 17 00:00:00 2001 From: Gehad elrobey <gehadelrobey@gmail.com> Date: Fri, 13 Mar 2015 15:31:24 +0200 Subject: [PATCH] Make exporting photos with HTML optional Add the option to enable/disable exporting photos with the HTML. Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'save-html.c')
-rw-r--r--save-html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/save-html.c b/save-html.c
index f9f1cf0d1..d15ac962f 100644
--- a/save-html.c
+++ b/save-html.c
@@ -329,7 +329,7 @@ void write_one_dive(struct membuffer *b, struct dive *dive, const char *photos_d
put_HTML_samples(b, dive);
put_HTML_bookmarks(b, dive);
write_dive_status(b, dive);
- if (photos_dir)
+ if (photos_dir && strcmp(photos_dir, ""))
save_photos(b, photos_dir, dive);
write_divecomputers(b, dive);
}