summaryrefslogtreecommitdiffstats
path: root/save-git.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-08-20 11:05:07 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-08-20 11:05:07 -0700
commita081ffe48e5c07505afaccde69dbdabe6f82054b (patch)
tree6291f7553520fc2591be6833a682136069704157 /save-git.c
parent0bb65a17cb77084a345f12581b5b39f4dafcae4a (diff)
downloadsubsurface-a081ffe48e5c07505afaccde69dbdabe6f82054b.tar.gz
Always save taxonomy data, even if disabled in the prefs
Otherwise, if one of the systems used with cloud storage doesn't have the preference for geo encoding enabled, the taxonomy data will be lost. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'save-git.c')
-rw-r--r--save-git.c13
1 files changed, 6 insertions, 7 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));
}
}