Ignore:
Timestamp:
2010-04-01T02:04:01+02:00 (15 years ago)
Author:
pieren
Message:

minor fixes

Location:
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastreInterface.java

    r20412 r20765  
    6868        if (wmsLayer.getName().equals(""))
    6969            return false;
    70         if (wmsLayer.getName().equals(lastWMSLayerName))
     70        boolean isCookieExpired = isCookieExpired();
     71        if (wmsLayer.getName().equals(lastWMSLayerName) && !isCookieExpired)
    7172            return true;
    7273        // open the session with the French Cadastre web front end
    7374        downloadCancelled = false;
    7475        try {
    75             if (cookie == null || isCookieExpired())
     76            if (cookie == null || isCookieExpired) {
    7677                getCookie();
     78                interfaceRef = null;
     79            }
    7780            if (cookie == null)
    7881                throw new WMSException(tr("Cannot open a new client session.\nServer in maintenance or temporary overloaded."));
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/WMSLayer.java

    r20659 r20765  
    188188            Main.map.mapView.repaint();
    189189        }
    190         if (buildingsOnly)
    191             joinBufferedImages();
    192         for (int i=lastSavedImage; i < images.size(); i++)
    193             saveToCache(images.get(i));
     190        if (!cancelled) {
     191            if (buildingsOnly)
     192                joinBufferedImages();
     193            for (int i=lastSavedImage; i < images.size(); i++)
     194                saveToCache(images.get(i));
     195        }
    194196    }
    195197
Note: See TracChangeset for help on using the changeset viewer.