Ignore:
Timestamp:
2010-03-11T00:58:51+01:00 (16 years ago)
Author:
pieren
Message:

improve download cancellation

File:
1 edited

Legend:

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

    r20390 r20412  
    7272    public EastNorthBound communeBBox = new EastNorthBound(new EastNorth(0,0), new EastNorth(0,0));
    7373
     74    public boolean cancelled;
     75
    7476    private boolean isRaster = false;
    7577    private boolean isAlreadyGeoreferenced = false;
     
    132134   
    133135    public void grab(CadastreGrabber grabber, Bounds b, boolean useFactor) throws IOException {
     136        cancelled = false;
    134137        if (useFactor) {
    135138            if (isRaster) {
     
    146149        int lastSavedImage = images.size();
    147150        for (EastNorthBound n : dividedBbox) {
     151            if (cancelled)
     152                return;
    148153            GeorefImage newImage;
    149154            try {
Note: See TracChangeset for help on using the changeset viewer.