aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2013-04-07 11:20:06 +0200
committerSamuel Tardieu <sam@rfc1149.net>2013-04-07 11:20:06 +0200
commitc791e236c88c98590635719ca84f8067db0eec77 (patch)
treec71a5efcc470ad8bd14d1369d47227a6c65dcf30
parentef8d23593daed17486f19b1d5f16b2e7798c580f (diff)
downloadcgeo-c791e236c88c98590635719ca84f8067db0eec77.zip
cgeo-c791e236c88c98590635719ca84f8067db0eec77.tar.gz
cgeo-c791e236c88c98590635719ca84f8067db0eec77.tar.bz2
issue #2636: fix was incorrect, check for equality, not identity
-rw-r--r--main/src/cgeo/geocaching/Geocache.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/Geocache.java b/main/src/cgeo/geocaching/Geocache.java
index 2706c5b..836cccb 100644
--- a/main/src/cgeo/geocaching/Geocache.java
+++ b/main/src/cgeo/geocaching/Geocache.java
@@ -1397,7 +1397,7 @@ public class Geocache implements ICache, IWaypoint {
private boolean hasIdenticalWaypoint(final Geopoint point) {
for (final Waypoint waypoint: waypoints) {
- if (waypoint.getCoords() == point) {
+ if (waypoint.getCoords().equals(point)) {
return true;
}
}