Changeset 12630 in josm for trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmTask.java
- Timestamp:
- 2017-08-24T00:15:51+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmTask.java
r12620 r12630 27 27 import org.openstreetmap.josm.data.osm.Way; 28 28 import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor; 29 import org.openstreetmap.josm.gui.MainApplication; 30 import org.openstreetmap.josm.gui.MapFrame; 29 31 import org.openstreetmap.josm.gui.PleaseWaitRunnable; 30 32 import org.openstreetmap.josm.gui.io.UpdatePrimitivesTask; … … 228 230 229 231 protected OsmDataLayer getEditLayer() { 230 if (!Main .isDisplayingMapView()) return null;232 if (!MainApplication.isDisplayingMapView()) return null; 231 233 return Main.getLayerManager().getEditLayer(); 232 234 } … … 280 282 Collection<OsmPrimitive> primitivesToUpdate = searchPrimitivesToUpdate(bounds, layer.data); 281 283 layer.mergeFrom(dataSet); 282 if (Main.map != null && zoomAfterDownload && bounds != null) { 283 Main.map.mapView.zoomTo(new ViewportData(computeBbox(bounds))); 284 MapFrame map = MainApplication.getMap(); 285 if (map != null && zoomAfterDownload && bounds != null) { 286 map.mapView.zoomTo(new ViewportData(computeBbox(bounds))); 284 287 } 285 288 if (!primitivesToUpdate.isEmpty()) {
Note:
See TracChangeset
for help on using the changeset viewer.