From c791e236c88c98590635719ca84f8067db0eec77 Mon Sep 17 00:00:00 2001 From: Samuel Tardieu Date: Sun, 7 Apr 2013 11:20:06 +0200 Subject: issue #2636: fix was incorrect, check for equality, not identity --- main/src/cgeo/geocaching/Geocache.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main') 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; } } -- cgit v1.1