Changeset 12240 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2017-05-23T17:31:05+02:00 (7 years ago)
Author:
Don-vip
Message:

fix #14831 - handle null bounds

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmTask.java

    r11986 r12240  
    279279                Collection<OsmPrimitive> primitivesToUpdate = searchPrimitivesToUpdate(bounds, layer.data);
    280280                layer.mergeFrom(dataSet);
    281                 if (Main.map != null && zoomAfterDownload) {
     281                if (Main.map != null && zoomAfterDownload && bounds != null) {
    282282                    Main.map.mapView.zoomTo(new ViewportData(computeBbox(bounds)));
    283283                }
Note: See TracChangeset for help on using the changeset viewer.