Changeset 608 in josm for trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java
- Timestamp:
- 2008-04-17T03:03:28+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java
r582 r608 1 // License: GPL. Copyright 2007 by Immanuel Scholz and others 1 // License: GPL. See LICENSE file for details. 2 2 3 package org.openstreetmap.josm.gui; 3 4 … … 98 99 */ 99 100 public LatLon getLatLon(int x, int y) { 100 EastNorth eastNorth = new EastNorth( 101 center.east() + (x - getWidth()/2.0)*scale, 102 center.north() - (y - getHeight()/2.0)*scale); 103 return getProjection().eastNorth2latlon(eastNorth); 101 102 return getProjection().eastNorth2latlon(getEastNorth(x, y)); 104 103 } 105 104
Note:
See TracChangeset
for help on using the changeset viewer.