Ignore:
Timestamp:
2018-09-03T20:15:11+02:00 (8 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/AddWayHandler.java

    r14143 r14221  
    1414
    1515import org.openstreetmap.josm.actions.AutoScaleAction;
     16import org.openstreetmap.josm.actions.AutoScaleAction.AutoScaleMode;
    1617import org.openstreetmap.josm.command.AddCommand;
    1718import org.openstreetmap.josm.command.Command;
     
    174175        ds.setSelected(way);
    175176        if (PermissionPrefWithDefault.CHANGE_VIEWPORT.isAllowed()) {
    176             AutoScaleAction.autoScale("selection");
     177            AutoScaleAction.autoScale(AutoScaleMode.SELECTION);
    177178        } else {
    178179            MainApplication.getMap().mapView.repaint();
Note: See TracChangeset for help on using the changeset viewer.