mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Git storage: only show geo cat if there is a value
Otherwise we could get mangled data since the newline isn't printed. Now a good question would be "why do we have empty values in our data", but either way, we should write invalid data to the git repository. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
ebcf3e67c5
commit
a0f88e4c9f
1 changed files with 1 additions and 1 deletions
|
@ -900,7 +900,7 @@ static void save_divesites(git_repository *repo, struct dir *tree)
|
|||
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) {
|
||||
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" );
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue