Changeset 5388 in josm


Ignore:
Timestamp:
2012-08-01T11:41:55+02:00 (12 years ago)
Author:
simon04
Message:

see #7910 - fix r5381 - Wrong suggested imagery layer providers (use of shapes when defined)

File:
1 edited

Legend:

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

    r5381 r5388  
    262262            for (Iterator<ImageryInfo> iti = layers.iterator(); iti.hasNext(); ) {
    263263                List<Shape> shapes = iti.next().getBounds().getShapes();
    264                 if (shapes != null) {
     264                if (shapes != null && !shapes.isEmpty()) {
    265265                    boolean found = false;
    266266                    for (Iterator<Shape> its = shapes.iterator(); its.hasNext() && !found; ) {
     
    272272                }
    273273            }
    274            
     274
    275275            if (layers.isEmpty()) {
    276276                return;
Note: See TracChangeset for help on using the changeset viewer.