Changeset 9408 in josm


Ignore:
Timestamp:
2016-01-11T14:39:52+01:00 (9 years ago)
Author:
bastiK
Message:

simplify zoom history: no unnecessary conversion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java

    r9405 r9408  
    600600
    601601    private class ZoomData {
    602         private final LatLon center;
     602        private final EastNorth center;
    603603        private final double scale;
    604604
    605605        ZoomData(EastNorth center, double scale) {
    606             this.center = Projections.inverseProject(center);
     606            this.center = center;
    607607            this.scale = scale;
    608608        }
    609609
    610610        public EastNorth getCenterEastNorth() {
    611             return getProjection().latlon2eastNorth(center);
     611            return center;
    612612        }
    613613
Note: See TracChangeset for help on using the changeset viewer.