summaryrefslogtreecommitdiffstats
path: root/core/parse-xml.c
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2018-09-10 20:27:09 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-12 14:14:14 -0700
commit1ad872ac5f21a75b397ac8ed6544ef6f967d633f (patch)
tree1b0e677c8cb23f7c371959c4981ca7da72f539c6 /core/parse-xml.c
parent1dc8beced365b7b11422aa3c6472270740bd3e2c (diff)
downloadsubsurface-1ad872ac5f21a75b397ac8ed6544ef6f967d633f.tar.gz
DLF import: Name dive site
The UI doesn't behave all that nice without name on the dive site. Signed-off-by: Anton Lundin <glance@acc.umu.se>
Diffstat (limited to 'core/parse-xml.c')
-rw-r--r--core/parse-xml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/parse-xml.c b/core/parse-xml.c
index b661b29c2..8cb795545 100644
--- a/core/parse-xml.c
+++ b/core/parse-xml.c
@@ -2075,7 +2075,7 @@ int parse_dlf_buffer(unsigned char *buffer, size_t size, struct dive_table *tabl
/* Measure GPS */
cur_latitude.udeg = (int)((ptr[7] << 24) + (ptr[6] << 16) + (ptr[5] << 8) + (ptr[4] << 0));
cur_longitude.udeg = (int)((ptr[11] << 24) + (ptr[10] << 16) + (ptr[9] << 8) + (ptr[8] << 0));
- cur_dive->dive_site_uuid = create_dive_site_with_gps(NULL, cur_latitude, cur_longitude, cur_dive->when);
+ cur_dive->dive_site_uuid = create_dive_site_with_gps("DLF imported", cur_latitude, cur_longitude, cur_dive->when);
const char * coords = printGPSCoords(cur_latitude.udeg, cur_longitude.udeg);
printf("gps: %s\n", coords);
free((void *)coords);