From 1377d4eedc4696924e462d0501d6a0efdd6539bb Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Tue, 31 May 2016 22:15:18 +0200 Subject: [PATCH] Fix -180 is not equal to 180 --- OsmAnd-java/src/net/osmand/util/MapUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd-java/src/net/osmand/util/MapUtils.java b/OsmAnd-java/src/net/osmand/util/MapUtils.java index 5246883e50..a13ff810b9 100644 --- a/OsmAnd-java/src/net/osmand/util/MapUtils.java +++ b/OsmAnd-java/src/net/osmand/util/MapUtils.java @@ -120,7 +120,7 @@ public class MapUtils { } public static double checkLongitude(double longitude) { - if (longitude > MIN_LONGITUDE && longitude <= MAX_LONGITUDE) { + if (longitude >= MIN_LONGITUDE && longitude <= MAX_LONGITUDE) { return longitude; } while (longitude <= MIN_LONGITUDE || longitude > MAX_LONGITUDE) {