diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2013-04-07 11:20:06 +0200 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2013-04-07 11:20:06 +0200 |
| commit | c791e236c88c98590635719ca84f8067db0eec77 (patch) | |
| tree | c71a5efcc470ad8bd14d1369d47227a6c65dcf30 /main/src | |
| parent | ef8d23593daed17486f19b1d5f16b2e7798c580f (diff) | |
| download | cgeo-c791e236c88c98590635719ca84f8067db0eec77.zip cgeo-c791e236c88c98590635719ca84f8067db0eec77.tar.gz cgeo-c791e236c88c98590635719ca84f8067db0eec77.tar.bz2 | |
issue #2636: fix was incorrect, check for equality, not identity
Diffstat (limited to 'main/src')
| -rw-r--r-- | main/src/cgeo/geocaching/Geocache.java | 2 |
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; } } |
