Changeset 8771 in josm for trunk/src/org
- Timestamp:
- 2015-09-21T01:58:37+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/bbox/TileSelectionBBoxChooser.java
r8530 r8771 681 681 max = null; 682 682 } else { 683 int y1 = tileSource.latToY(bbox.getMinLat(), MAX_ZOOM); 684 int y2 = tileSource.latToY(bbox.getMaxLat(), MAX_ZOOM); 685 int x1 = tileSource.lonToX(bbox.getMinLon(), MAX_ZOOM); 686 int x2 = tileSource.lonToX(bbox.getMaxLon(), MAX_ZOOM); 687 688 min = new Point(Math.min(x1, x2), Math.min(y1, y2)); 689 max = new Point(Math.max(x1, x2), Math.max(y1, y2)); 683 Point p1 = tileSource.latLonToXY(bbox.getMinLat(), bbox.getMinLon(), MAX_ZOOM); 684 Point p2 = tileSource.latLonToXY(bbox.getMaxLat(), bbox.getMaxLon(), MAX_ZOOM); 685 686 min = new Point(Math.min(p1.x, p2.x), Math.min(p1.y, p2.y)); 687 max = new Point(Math.max(p1.x, p2.x), Math.max(p1.y, p2.y)); 690 688 } 691 689 repaint();
Note:
See TracChangeset
for help on using the changeset viewer.