Changeset 3809 in josm


Ignore:
Timestamp:
2011-01-23T17:31:10+01:00 (11 years ago)
Author:
jttt
Message:

Fix #5207 [PATCH] WMS plugin doesn't download "not in cache"-Tiles when switching to "automatic downloading"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/WMSLayer.java

    r3808 r3809  
    733733            autoDownloadEnabled = !autoDownloadEnabled;
    734734            if (autoDownloadEnabled) {
     735                for (int x = 0; x < dax; ++x) {
     736                    for (int y = 0; y < day; ++y) {
     737                        GeorefImage img = images[modulo(x,dax)][modulo(y,day)];
     738                        if(img.getState() == State.NOT_IN_CACHE){
     739                            addRequest(new WMSRequest(img.getXIndex(), img.getYIndex(), info.getPixelPerDegree(), false));
     740                        }
     741                    }
     742                }
    735743                mv.repaint();
    736744            }
Note: See TracChangeset for help on using the changeset viewer.