Ignore:
Timestamp:
2018-09-03T20:15:11+02:00 (6 years ago)
Author:
Don-vip
Message:

see #16706 - use documented enum for AutoScaleMode instead of undocumented string constants

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/LoadAndZoomHandler.java

    r13973 r14221  
    1717
    1818import org.openstreetmap.josm.actions.AutoScaleAction;
     19import org.openstreetmap.josm.actions.AutoScaleAction.AutoScaleMode;
    1920import org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask;
    2021import org.openstreetmap.josm.actions.downloadtasks.DownloadParams;
     
    264265        // zoom_mode=(download|selection), defaults to selection
    265266        if (!"download".equals(args.get("zoom_mode")) && !primitives.isEmpty()) {
    266             AutoScaleAction.autoScale("selection");
     267            AutoScaleAction.autoScale(AutoScaleMode.SELECTION);
    267268        } else if (MainApplication.isDisplayingMapView()) {
    268269            // make sure this isn't called unless there *is* a MapView
Note: See TracChangeset for help on using the changeset viewer.