aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/geopoint/Viewport.java
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/cgeo/geocaching/geopoint/Viewport.java')
-rw-r--r--main/src/cgeo/geocaching/geopoint/Viewport.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/main/src/cgeo/geocaching/geopoint/Viewport.java b/main/src/cgeo/geocaching/geopoint/Viewport.java
index 0937b6d..8fe2ea6 100644
--- a/main/src/cgeo/geocaching/geopoint/Viewport.java
+++ b/main/src/cgeo/geocaching/geopoint/Viewport.java
@@ -27,9 +27,8 @@ public class Viewport {
topRight = new Geopoint(centerLat + Math.abs(latSpan) / 2, centerLon + Math.abs(lonSpan) / 2);
}
- public Viewport(final int minLat, final int maxLat, final int minLon, final int maxLon) {
- this(new Geopoint(Math.min(minLat, maxLat), Math.min(minLon, maxLon)),
- new Geopoint(Math.max(minLat, maxLat), Math.max(minLon, maxLon)));
+ public Viewport(final double lat1, final double lat2, final double lon1, final double lon2) {
+ this(new Geopoint(lat1, lon1), new Geopoint(lat2, lon2));
}
public double getLatitudeMin() {