Ticket #19451: 19451.patch
File 19451.patch, 1.5 KB (added by , 5 years ago) |
---|
-
src/org/openstreetmap/josm/actions/UpdateDataAction.java
12 12 import java.util.stream.Collectors; 13 13 14 14 import org.openstreetmap.josm.actions.downloadtasks.DownloadTaskList; 15 import org.openstreetmap.josm.data.osm.OsmPrimitive; 15 16 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 16 17 import org.openstreetmap.josm.gui.progress.swing.PleaseWaitProgressMonitor; 17 18 import org.openstreetmap.josm.io.NetworkManager; … … 85 86 .collect(Collectors.toList()); 86 87 87 88 if (areasToDownload.isEmpty()) { 88 // no bounds defined in the dataset? we update all primitives in the data set using a series of multi fetch requests 89 UpdateSelectionAction.updatePrimitives(editLayer.data.allPrimitives()); 89 // no bounds defined in the dataset? we update all selectable primitives in the data set using a series of multi fetch requests 90 UpdateSelectionAction.updatePrimitives(editLayer.data.allPrimitives().stream() 91 .filter(OsmPrimitive::isSelectable).collect(Collectors.toList())); 90 92 } else { 91 93 // bounds defined? => use the bbox downloader 92 94 final PleaseWaitProgressMonitor monitor = new PleaseWaitProgressMonitor(tr("Download data"));