From: Frédéric Perrin Date: Sun, 1 Dec 2019 22:19:52 +0000 (+0000) Subject: wip viewfinder X-Git-Url: http://gitweb.fperrin.net/?p=GpsPrune.git;a=commitdiff_plain;h=refs%2Fheads%2Fsrtm-multi-sources-viewfinder wip viewfinder --- diff --git a/src/tim/prune/function/srtm/SrtmTile.java b/src/tim/prune/function/srtm/SrtmTile.java index 62e2ba1..69e8537 100644 --- a/src/tim/prune/function/srtm/SrtmTile.java +++ b/src/tim/prune/function/srtm/SrtmTile.java @@ -41,9 +41,15 @@ public class SrtmTile * @param inOther other tile object * @return true if both represent same tile */ - public boolean equals(SrtmTile inOther) + public boolean equals(Object inOther) { - return (_latitude == inOther._latitude) && (_longitude == inOther._longitude); + if (! (inOther instanceof SrtmTile)) + { + return false; + } + SrtmTile otherTile = (SrtmTile) inOther; + return (_latitude == otherTile._latitude) && + (_longitude == otherTile._longitude); } public int hashCode()