aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/maps
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2013-01-26 22:58:42 +0100
committerSamuel Tardieu <sam@rfc1149.net>2013-01-26 22:58:42 +0100
commit1139fc83197316f0ababb5cd365cbb440b632e3b (patch)
treea0af756ff2f71c333c0ca187607522aa8beb0754 /main/src/cgeo/geocaching/maps
parent2f541d3b40e67e03c540f4e10dccf0384854fd0e (diff)
downloadcgeo-1139fc83197316f0ababb5cd365cbb440b632e3b.zip
cgeo-1139fc83197316f0ababb5cd365cbb440b632e3b.tar.gz
cgeo-1139fc83197316f0ababb5cd365cbb440b632e3b.tar.bz2
0 is a valid waypoint id
Diffstat (limited to 'main/src/cgeo/geocaching/maps')
-rw-r--r--main/src/cgeo/geocaching/maps/CachesOverlay.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/maps/CachesOverlay.java b/main/src/cgeo/geocaching/maps/CachesOverlay.java
index fe1a19b..ce519f4 100644
--- a/main/src/cgeo/geocaching/maps/CachesOverlay.java
+++ b/main/src/cgeo/geocaching/maps/CachesOverlay.java
@@ -237,7 +237,7 @@ public class CachesOverlay extends AbstractItemizedOverlay {
return true;
}
- if (coordinate.getCoordType() != null && coordinate.getCoordType().equalsIgnoreCase("waypoint") && coordinate.getId() > 0) {
+ if (coordinate.getCoordType() != null && coordinate.getCoordType().equalsIgnoreCase("waypoint") && coordinate.getId() >= 0) {
CGeoMap.markCacheAsDirty(coordinate.getGeocode());
WaypointPopup.startActivity(context, coordinate.getId(), coordinate.getGeocode());
} else {