mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 06:15:26 +00:00
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>
This commit is contained in:
parent
1dc8beced3
commit
1ad872ac5f
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue