diff options
author | Samuel Tardieu <sam@rfc1149.net> | 2013-01-26 22:58:42 +0100 |
---|---|---|
committer | Samuel Tardieu <sam@rfc1149.net> | 2013-01-26 22:58:42 +0100 |
commit | 1139fc83197316f0ababb5cd365cbb440b632e3b (patch) | |
tree | a0af756ff2f71c333c0ca187607522aa8beb0754 /main/src/cgeo/geocaching/maps | |
parent | 2f541d3b40e67e03c540f4e10dccf0384854fd0e (diff) | |
download | cgeo-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.java | 2 |
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 { |