diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-01-28 21:11:01 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-01-28 21:43:46 -0800 |
commit | a1dfae87ae6048b82e91112d3d992c472b49b7a2 (patch) | |
tree | 926098e5f1fa35b043f60ff018bad8fe3896de8f /parse-xml.c | |
parent | d322f6762a4916e91b8be3b5118e1310f97c8b68 (diff) | |
download | subsurface-a1dfae87ae6048b82e91112d3d992c472b49b7a2.tar.gz |
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>
Diffstat (limited to 'parse-xml.c')
-rw-r--r-- | parse-xml.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/parse-xml.c b/parse-xml.c index e2f84f073..765843fbc 100644 --- a/parse-xml.c +++ b/parse-xml.c @@ -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)) |