summaryrefslogtreecommitdiffstats
path: root/save-xml.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-xml.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-xml.c')
-rw-r--r--save-xml.c2
1 files changed, 1 insertions, 1 deletions
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];