Changeset 13741 in osm


Ignore:
Timestamp:
2009-02-15T15:18:29+01:00 (16 years ago)
Author:
stoecker
Message:

close #2176

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/wmsplugin/src/wmsplugin/GeorefImage.java

    r13673 r13741  
    6262        int width = Math.abs(maxPt.x-minPt.x);
    6363        int height = Math.abs(minPt.y-maxPt.y);
    64         int diffx = reImgHash.width - width;
    65         int diffy = reImgHash.height - height;
    66 
     64        int diffx, diffy;
     65        try {
     66            diffx = reImgHash.width - width;
     67            diffy = reImgHash.height - height;
     68        } catch(Exception e) {
     69            reImgHash = new Dimension(0, 0);
     70            diffx = 99;
     71            diffy = 99;
     72        }
    6773        // This happens if you zoom outside the world
    6874        if(width == 0 || height == 0)
Note: See TracChangeset for help on using the changeset viewer.