Changeset 13666 in osm for applications/editors/josm/plugins
- Timestamp:
- 2009-02-11T18:14:31+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/wmsplugin/src/wmsplugin/GeorefImage.java
r13654 r13666 53 53 Point minPt = nc.getPoint(mi), maxPt = nc.getPoint(ma); 54 54 55 // downloadAndPaintVisible in WMSLayer.java requests visible images only56 // so this path is never hit.57 55 /* 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))) { 59 57 return false; 60 } */58 } 61 59 62 60 // Width and height flicker about 2 pixels due to rounding errors, typically only 1 … … 65 63 int diffx = reImgHash.width - width; 66 64 int diffy = reImgHash.height - height; 65 66 // This happens if you zoom outside the world 67 if(width == 0 || height == 0) 68 return false; 67 69 68 70 // 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.