mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
parser: allow import of dive sites without UUID
Fixes #3493. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
aa4b48f440
commit
6d77d814a8
2 changed files with 7 additions and 6 deletions
12
core/parse.c
12
core/parse.c
|
@ -247,13 +247,13 @@ void dive_site_end(struct parser_state *state)
|
|||
{
|
||||
if (!state->cur_dive_site)
|
||||
return;
|
||||
if (state->cur_dive_site->uuid) {
|
||||
struct dive_site *ds = alloc_or_get_dive_site(state->cur_dive_site->uuid, state->sites);
|
||||
merge_dive_site(ds, state->cur_dive_site);
|
||||
|
||||
if (verbose > 3)
|
||||
printf("completed dive site uuid %x8 name {%s}\n", ds->uuid, ds->name);
|
||||
}
|
||||
struct dive_site *ds = alloc_or_get_dive_site(state->cur_dive_site->uuid, state->sites);
|
||||
merge_dive_site(ds, state->cur_dive_site);
|
||||
|
||||
if (verbose > 3)
|
||||
printf("completed dive site uuid %x8 name {%s}\n", ds->uuid, ds->name);
|
||||
|
||||
free_dive_site(state->cur_dive_site);
|
||||
state->cur_dive_site = NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue