summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--save-git.c13
-rw-r--r--save-xml.c2
2 files changed, 7 insertions, 8 deletions
diff --git a/save-git.c b/save-git.c
index 559666d0e..9ae1d572e 100644
--- a/save-git.c
+++ b/save-git.c
@@ -900,14 +900,13 @@ static void save_divesites(git_repository *repo, struct dir *tree)
show_utf8(&b, "description ", ds->description, "\n");
show_utf8(&b, "notes ", ds->notes, "\n");
show_gps(&b, ds->latitude, ds->longitude);
- if (prefs.geocoding.enable_geocoding)
- for (int j = 0; j < ds->taxonomy.nr; j++) {
- struct taxonomy *t = &ds->taxonomy.category[j];
- if (t->category != TC_NONE && t->value) {
- put_format(&b, "geo cat %d origin %d ", t->category, t->origin);
- show_utf8(&b, "", t->value, "\n" );
- }
+ for (int j = 0; j < ds->taxonomy.nr; j++) {
+ struct taxonomy *t = &ds->taxonomy.category[j];
+ if (t->category != TC_NONE && t->value) {
+ put_format(&b, "geo cat %d origin %d ", t->category, t->origin);
+ show_utf8(&b, "", t->value, "\n" );
}
+ }
blob_insert(repo, subdir, &b, mb_cstring(&site_file_name));
}
}
diff --git a/save-xml.c b/save-xml.c
index 00f4626d3..67ae96a37 100644
--- a/save-xml.c
+++ b/save-xml.c
@@ -533,7 +533,7 @@ void save_dives_buffer(struct membuffer *b, const bool select_only)
}
show_utf8(b, ds->description, " description='", "'", 1);
show_utf8(b, ds->notes, " notes='", "'", 1);
- if (prefs.geocoding.enable_geocoding && ds->taxonomy.nr) {
+ if (ds->taxonomy.nr) {
put_format(b, ">\n");
for (int j = 0; j < ds->taxonomy.nr; j++) {
struct taxonomy *t = &ds->taxonomy.category[j];