Changeset 16770 in josm


Ignore:
Timestamp:
2020-07-15T15:54:08+02:00 (3 months ago)
Author:
GerdP
Message:

fix #19451: Update data: Do not download incomplete ways

  • if no download areas exist download again all objects with are neither new nor incomplete
  • don't stop post processing of downloaded data if one or more download areas are empty
Location:
trunk/src/org/openstreetmap/josm/actions
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/UpdateDataAction.java

    r16509 r16770  
    8686
    8787        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());
     88            // no bounds defined in the dataset? We update all but the incomplete primitives in the data set
     89            UpdateSelectionAction.updatePrimitives(editLayer.data.allPrimitives().stream()
     90                    .filter(p -> !p.isNew() && !p.isIncomplete()).collect(Collectors.toList()));
    9091        } else {
    9192            // bounds defined? => use the bbox downloader
  • trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadTaskList.java

    r16438 r16770  
    266266                                        Utils.joinAsHtmlUnorderedList(items)) + "</html>",
    267267                                tr("Errors during download"), JOptionPane.ERROR_MESSAGE);
     268                        return;
    268269                    }
    269270                });
    270 
    271                 return;
    272271            }
    273272
Note: See TracChangeset for help on using the changeset viewer.