Ticket #20633: 20633.patch
| File 20633.patch, 1.2 KB (added by , 5 years ago) |
|---|
-
src/org/openstreetmap/josm/io/MultiFetchServerObjectReader.java
442 442 * @see #getMissingPrimitives() 443 443 */ 444 444 private void downloadRelations(ProgressMonitor progressMonitor) throws OsmTransferException { 445 boolean removeIncomplete = outputDataSet.isEmpty(); 445 446 Set<Long> toDownload = new LinkedHashSet<>(relations); 446 447 fetchPrimitives(toDownload, OsmPrimitiveType.RELATION, progressMonitor); 447 448 if (!recurseDownRelations) { … … 449 450 } 450 451 // OSM multi-fetch api may return invisible objects, we don't try to get details for them 451 452 for (Relation r : outputDataSet.getRelations()) { 452 if (!r.isVisible()) 453 if (!r.isVisible()) { 453 454 toDownload.remove(r.getUniqueId()); 455 } else if (removeIncomplete) { 456 outputDataSet.removePrimitive(r); 457 } 454 458 } 459 455 460 // fetch full info for all visible relations 456 461 for (long id : toDownload) { 457 462 if (isCanceled())
