Changeset 4946 in josm for trunk


Ignore:
Timestamp:
2012-02-15T22:34:56+01:00 (8 years ago)
Author:
simon04
Message:

remotecontrol: do not attempt to override AutoScaleAction shortcuts (two more)

Location:
trunk/src/org/openstreetmap/josm/io/remotecontrol/handler
Files:
2 edited

Legend:

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

    r4834 r4946  
    6262        Main.main.getCurrentDataSet().setSelected(nnew);
    6363        if (Main.pref.getBoolean(LoadAndZoomHandler.changeViewportPermissionKey, LoadAndZoomHandler.changeViewportPermissionDefault)) {
    64             new AutoScaleAction("selection").actionPerformed(null);
     64            AutoScaleAction.autoScale("selection");
    6565        } else {
    6666            Main.map.mapView.repaint();
  • trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/AddWayHandler.java

    r4834 r4946  
    4242        Main.main.getCurrentDataSet().setSelected(way);
    4343        if (Main.pref.getBoolean(LoadAndZoomHandler.changeViewportPermissionKey, LoadAndZoomHandler.changeViewportPermissionDefault)) {
    44             new AutoScaleAction("selection").actionPerformed(null);
     44            AutoScaleAction.autoScale("selection");
    4545        } else {
    4646            Main.map.mapView.repaint();
Note: See TracChangeset for help on using the changeset viewer.