Changeset 18017 in josm
- Timestamp:
- 2021-07-14T16:37:05+02:00 (4 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmTask.java
r17603 r18017 45 45 import org.openstreetmap.josm.io.OverpassDownloadReader; 46 46 import org.openstreetmap.josm.io.UrlPatterns.OsmUrlPattern; 47 import org.openstreetmap.josm.spi.preferences.Config; 47 48 import org.openstreetmap.josm.tools.Logging; 48 49 import org.openstreetmap.josm.tools.Utils; … … 214 215 } 215 216 217 protected final void rememberDownloadedBounds(Bounds bounds) { 218 if (bounds != null) { 219 Config.getPref().put("osm-download.bounds", bounds.encodeAsString(";")); 220 } 221 } 222 216 223 /** 217 224 * Superclass of internal download task. … … 506 513 } 507 514 515 rememberDownloadedBounds(currentBounds); 508 516 rememberDownloadedData(dataSet); 509 517 loadData(newLayerName, currentBounds); -
trunk/src/org/openstreetmap/josm/gui/download/DownloadDialog.java
r17777 r18017 440 440 downloadSourcesTab.getSelectedPanel().ifPresent(panel -> DOWNLOAD_SOURCE_TAB.put(panel.getSimpleName())); 441 441 DOWNLOAD_ZOOMTODATA.put(cbZoomToDownloadedData.isSelected()); 442 if (currentBounds != null) {443 Config.getPref().put("osm-download.bounds", currentBounds.encodeAsString(";"));444 }445 442 } 446 443
Note:
See TracChangeset
for help on using the changeset viewer.