Changeset 13666 in osm for applications


Ignore:
Timestamp:
2009-02-11T18:14:31+01:00 (15 years ago)
Author:
stoecker
Message:

apply fix of #1954

File:
1 edited

Legend:

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

    r13654 r13666  
    5353        Point minPt = nc.getPoint(mi), maxPt = nc.getPoint(ma);
    5454
    55         // downloadAndPaintVisible in WMSLayer.java requests visible images only
    56         // so this path is never hit.
    5755        /* this is isVisible() but taking dx, dy into account */
    58         /*if(!(g.hitClip(minPt.x, maxPt.y, maxPt.x - minPt.x, minPt.y - maxPt.y))) {
     56        if(!(g.hitClip(minPt.x, maxPt.y, maxPt.x - minPt.x, minPt.y - maxPt.y))) {
    5957            return false;
    60         }*/
     58        }
    6159       
    6260        // Width and height flicker about 2 pixels due to rounding errors, typically only 1
     
    6563        int diffx = reImgHash.width - width;
    6664        int diffy = reImgHash.height - height;
     65       
     66        // This happens if you zoom outside the world
     67        if(width == 0 || height == 0)
     68            return false;
    6769       
    6870        // We still need to re-render if the requested size is larger (otherwise we'll have black lines)
Note: See TracChangeset for help on using the changeset viewer.