Changeset 754 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2008-08-06T18:55:42+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/AutoScaleAction.java
r746 r754 87 87 // especially if the bbox contains one single node, but helpful 88 88 // in most other cases as well. 89 // if (v.min != null && v.max != null && v.min.north() == v.max.north() && v.min.east() == v.max.east()) { 90 EastNorth en = Main.proj.latlon2eastNorth(new LatLon(0.001, 0.001)); 91 v.min = new EastNorth(v.min.east()-en.east(), v.min.north()-en.north()); 92 v.max = new EastNorth(v.max.east()+en.east(), v.max.north()+en.north()); 89 if (v.min != null && v.max != null) // && v.min.north() == v.max.north() && v.min.east() == v.max.east()) { 90 { 91 EastNorth en = Main.proj.latlon2eastNorth(new LatLon(0.001, 0.001)); 92 v.min = new EastNorth(v.min.east()-en.east(), v.min.north()-en.north()); 93 v.max = new EastNorth(v.max.east()+en.east(), v.max.north()+en.north()); 94 } 93 95 } 94 96 return v;
Note:
See TracChangeset
for help on using the changeset viewer.