mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
xml-parsing: accept 'sitelat' and 'sitelon' for GPS coordinates
Are they ugly and insane tags? Yes. Are they used? Bingo. MacDive uses this lovely format for specifying dive site location. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
d322f6762a
commit
a1dfae87ae
1 changed files with 4 additions and 0 deletions
|
@ -1004,8 +1004,12 @@ static void try_to_fill_dive(struct dive *dive, const char *name, char *buf)
|
|||
return;
|
||||
if (MATCH(".latitude", gps_lat, dive))
|
||||
return;
|
||||
if (MATCH(".sitelat", gps_lat, dive))
|
||||
return;
|
||||
if (MATCH(".longitude", gps_long, dive))
|
||||
return;
|
||||
if (MATCH(".sitelon", gps_long, dive))
|
||||
return;
|
||||
if (MATCH(".location", utf8_string, &dive->location))
|
||||
return;
|
||||
if (MATCH("dive.name", utf8_string, &dive->location))
|
||||
|
|
Loading…
Add table
Reference in a new issue