Changeset 12630 in josm for trunk/src/org/openstreetmap/josm/actions/DownloadAction.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/DownloadAction.java
r12620 r12630 24 24 import org.openstreetmap.josm.data.ProjectionBounds; 25 25 import org.openstreetmap.josm.data.ViewportData; 26 import org.openstreetmap.josm.gui.MainApplication; 27 import org.openstreetmap.josm.gui.MapFrame; 26 28 import org.openstreetmap.josm.gui.download.DownloadDialog; 27 29 import org.openstreetmap.josm.gui.util.GuiHelper; … … 125 127 } 126 128 // Zoom to the larger download bounds 127 if (Main.map != null && bounds != null) { 129 MapFrame map = MainApplication.getMap(); 130 if (map != null && bounds != null) { 128 131 final ProjectionBounds pb = bounds; 129 GuiHelper.runInEDTAndWait(() -> Main.map.mapView.zoomTo(new ViewportData(pb)));132 GuiHelper.runInEDTAndWait(() -> map.mapView.zoomTo(new ViewportData(pb))); 130 133 } 131 134 });
Note:
See TracChangeset
for help on using the changeset viewer.