Changeset 1722 in josm for trunk/src/org/openstreetmap/josm/data/coor
- Timestamp:
- 2009-07-03T12:33:32+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/coor/LatLon.java
r1209 r1722 7 7 import org.openstreetmap.josm.data.Bounds; 8 8 import org.openstreetmap.josm.data.projection.Projection; 9 import org.openstreetmap.josm.Main; 9 10 10 11 import java.text.DecimalFormat; … … 87 88 */ 88 89 public boolean isOutSideWorld() { 89 return lat() < -Projection.MAX_LAT || lat() > Projection.MAX_LAT || 90 lon() < -Projection.MAX_LON || lon() > Projection.MAX_LON; 90 Bounds b = Main.proj.getWorldBoundsLatLon(); 91 return lat() < b.min.lat() || lat() > b.max.lat() || 92 lon() < b.min.lon() || lon() > b.max.lon(); 91 93 } 92 94
Note: See TracChangeset
for help on using the changeset viewer.