mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
[Divesite] Save / Load the country from xml
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
cabf8c0c21
commit
32e6ca4919
2 changed files with 6 additions and 3 deletions
|
@ -1506,6 +1506,8 @@ static void try_to_fill_dive_site(struct dive_site **ds_p, const char *name, cha
|
||||||
return;
|
return;
|
||||||
if (MATCH("name", utf8_string, &ds->name))
|
if (MATCH("name", utf8_string, &ds->name))
|
||||||
return;
|
return;
|
||||||
|
if (MATCH("country", utf8_string, &ds->country))
|
||||||
|
return;
|
||||||
if (MATCH("description", utf8_string, &ds->description))
|
if (MATCH("description", utf8_string, &ds->description))
|
||||||
return;
|
return;
|
||||||
if (MATCH("notes", utf8_string, &ds->notes))
|
if (MATCH("notes", utf8_string, &ds->notes))
|
||||||
|
|
|
@ -598,6 +598,7 @@ void save_dives_buffer(struct membuffer *b, const bool select_only)
|
||||||
|
|
||||||
put_format(b, "<site uuid='%8x'", ds->uuid);
|
put_format(b, "<site uuid='%8x'", ds->uuid);
|
||||||
show_utf8(b, ds->name, " name='", "'", 1);
|
show_utf8(b, ds->name, " name='", "'", 1);
|
||||||
|
show_utf8(b, ds->country, " country='", "'", 1);
|
||||||
if (ds->latitude.udeg || ds->longitude.udeg) {
|
if (ds->latitude.udeg || ds->longitude.udeg) {
|
||||||
put_degrees(b, ds->latitude, " gps='", " ");
|
put_degrees(b, ds->latitude, " gps='", " ");
|
||||||
put_degrees(b, ds->longitude, "", "'");
|
put_degrees(b, ds->longitude, "", "'");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue