aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2014-05-14 19:40:06 +0200
committerBananeweizen <bananeweizen@gmx.de>2014-05-14 19:40:06 +0200
commit6089f9db35f16797bde5f59c2bcda1d0803cfec6 (patch)
treeeba3159b5008f10016272bc9c95a5e753a0b46f6 /main/src/cgeo
parented5955f814400d2e39a73612e076f53c7212440f (diff)
downloadcgeo-6089f9db35f16797bde5f59c2bcda1d0803cfec6.zip
cgeo-6089f9db35f16797bde5f59c2bcda1d0803cfec6.tar.gz
cgeo-6089f9db35f16797bde5f59c2bcda1d0803cfec6.tar.bz2
fix #3837: parse new GPX waypoint types
Diffstat (limited to 'main/src/cgeo')
-rw-r--r--main/src/cgeo/geocaching/files/GPXParser.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/files/GPXParser.java b/main/src/cgeo/geocaching/files/GPXParser.java
index 5553927..6161088 100644
--- a/main/src/cgeo/geocaching/files/GPXParser.java
+++ b/main/src/cgeo/geocaching/files/GPXParser.java
@@ -951,6 +951,13 @@ public abstract class GPXParser extends FileParser {
if ("final location".equalsIgnoreCase(sym)) {
return WaypointType.FINAL;
}
+ // renamed waypoint types
+ if ("Physical Stage".equalsIgnoreCase(sym)) {
+ return WaypointType.STAGE;
+ }
+ if ("Virtual Stage".equalsIgnoreCase(sym)) {
+ return WaypointType.PUZZLE;
+ }
// this is not fully correct, but lets also look for localized waypoint types
for (final WaypointType waypointType : WaypointType.ALL_TYPES_EXCEPT_OWN_AND_ORIGINAL) {
final String localized = waypointType.getL10n();