Changeset 8364 in josm for trunk/src/org/openstreetmap/josm/gui
- Timestamp:
- 2015-05-16T14:21:27+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java
r8345 r8364 370 370 if (null == p) 371 371 return new Point(); 372 double x = (p.east()-center.east())/scale + getWidth()/2 ;373 double y = (center.north()-p.north())/scale + getHeight()/2 ;372 double x = (p.east()-center.east())/scale + getWidth()/2d; 373 double y = (center.north()-p.north())/scale + getHeight()/2d; 374 374 return new Point2D.Double(x, y); 375 375 }
Note:
See TracChangeset
for help on using the changeset viewer.