Changeset 5629 in josm for trunk/src/org


Ignore:
Timestamp:
2012-12-24T04:03:39+01:00 (12 years ago)
Author:
Don-vip
Message:

Remote control: don't try to zoom to an empty selection in load_and_zoom handler

File:
1 edited

Legend:

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

    r5600 r5629  
    170170                    if (PermissionPrefWithDefault.CHANGE_VIEWPORT.isAllowed()) {
    171171                        // zoom_mode=(download|selection), defaults to selection
    172                         if (!"download".equals(args.get("zoom_mode"))) {
     172                        if (!"download".equals(args.get("zoom_mode")) && !newSel.isEmpty()) {
    173173                            AutoScaleAction.autoScale("selection");
    174174                        } else {
Note: See TracChangeset for help on using the changeset viewer.