summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2013-02-25 09:20:58 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-02-25 07:50:51 -0800
commite84ad1b33a58e3cbfb42830b78b0e1ac5c430ea1 (patch)
treef8fabfdc286f94f9eb5cbf6e7ad64ebcb74775bf
parentc1581ef45bcf504713f09c857db02bde18dff60d (diff)
downloadsubsurface-e84ad1b33a58e3cbfb42830b78b0e1ac5c430ea1.tar.gz
Fix GPS import from divinglog
Ticket #63 - divinglog 5.08 import issues This patch will include the GPS coordinates from divinglog. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--parse-xml.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/parse-xml.c b/parse-xml.c
index 618d058a4..19b419cf5 100644
--- a/parse-xml.c
+++ b/parse-xml.c
@@ -1018,14 +1018,20 @@ static void try_to_fill_dive(struct dive *dive, const char *name, char *buf)
return;
if (MATCH(".gps", gps_location, dive))
return;
+ if (MATCH(".Place", gps_location, dive))
+ return;
if (MATCH(".latitude", gps_lat, dive))
return;
if (MATCH(".sitelat", gps_lat, dive))
return;
+ if (MATCH(".lat", gps_lat, dive))
+ return;
if (MATCH(".longitude", gps_long, dive))
return;
if (MATCH(".sitelon", gps_long, dive))
return;
+ if (MATCH(".lon", gps_long, dive))
+ return;
if (MATCH(".location", utf8_string, &dive->location))
return;
if (MATCH("dive.name", utf8_string, &dive->location))