diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-07-02 07:03:03 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-07-02 07:03:03 -0700 |
commit | f554c2d16cb5816b6b1a97b0349488bc70b512b0 (patch) | |
tree | 60811b1d64c2f37378ed20147f829cf74849d1dd /save-git.c | |
parent | 1d59b028c91ab7943cfece4a113948c61110dfc3 (diff) | |
parent | 0a0a6f07d5dbb2c24184d22c3c2cedf89ffdc7ac (diff) | |
download | subsurface-f554c2d16cb5816b6b1a97b0349488bc70b512b0.tar.gz |
Merge branch 'taxonomy'
Diffstat (limited to 'save-git.c')
-rw-r--r-- | save-git.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/save-git.c b/save-git.c index a18ef8f84..ff82ca841 100644 --- a/save-git.c +++ b/save-git.c @@ -897,6 +897,14 @@ 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 != NONE) { + 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)); } } |