Ignore:
Timestamp:
2009-07-03T12:34:14+02:00 (15 years ago)
Author:
stoecker
Message:

adapted plugins to JOSm 1722, UtilsPlugin still has a problem

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/remotecontrol/src/org/openstreetmap/josm/plugins/remotecontrol/RequestProcessor.java

    r14893 r16290  
    1818import org.openstreetmap.josm.actions.AutoScaleAction;
    1919import org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask;
     20import org.openstreetmap.josm.data.Bounds;
    2021import org.openstreetmap.josm.data.coor.EastNorth;
    2122import org.openstreetmap.josm.data.coor.LatLon;
     
    194195                } else if (Main.pref.getBoolean("remotecontrol.permission.change-viewport", true)) {
    195196                    // after downloading, zoom to downloaded area.
    196                     final LatLon min = new LatLon(minlat, minlon);
    197                     final LatLon max = new LatLon(maxlat, maxlon);
     197                    final Bounds bounds = new Bounds(new LatLon(minlat, minlon),
     198                        new LatLon(maxlat, maxlon));
    198199
    199200                    Main.worker.execute(new Runnable() {
    200201                        public void run() {
    201202                            BoundingXYVisitor bbox = new BoundingXYVisitor();
    202                             bbox.min = Main.proj.latlon2eastNorth(min);
    203                             bbox.max = Main.proj.latlon2eastNorth(max);
     203                            bbox.visit(bounds);
    204204                            Main.map.mapView.recalculateCenterScale(bbox);
    205205                        }
Note: See TracChangeset for help on using the changeset viewer.