Changeset 3749 in josm


Ignore:
Timestamp:
2010-12-28T18:40:12+01:00 (11 years ago)
Author:
jttt
Message:

Fix loading of wms tiles (when mapview is moved and then moved back then request can stay in processingList and be skipped for ever)

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

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

    r3747 r3749  
    462462
    463463    public void finishRequest(WMSRequest request) {
    464         if (request.getState() == null)
    465             throw new IllegalArgumentException("Finished request without state");
    466464        requestQueueLock.lock();
    467465        try {
    468466            processingRequests.remove(request);
    469             finishedRequests.add(request);
     467            if (request.getState() != null) {
     468                finishedRequests.add(request);
     469                mv.repaint();
     470            }
    470471        } finally {
    471472            requestQueueLock.unlock();
  • trunk/src/org/openstreetmap/josm/io/imagery/Grabber.java

    r3747 r3749  
    7171                attempt(request);
    7272            }
    73             if (request.getState() != null) {
    74                 layer.finishRequest(request);
    75                 mv.repaint();
    76             }
     73            layer.finishRequest(request);
    7774        }
    7875    }
Note: See TracChangeset for help on using the changeset viewer.