Index: /applications/editors/josm/plugins/wmsplugin/src/wmsplugin/GeorefImage.java
===================================================================
--- /applications/editors/josm/plugins/wmsplugin/src/wmsplugin/GeorefImage.java	(revision 13665)
+++ /applications/editors/josm/plugins/wmsplugin/src/wmsplugin/GeorefImage.java	(revision 13666)
@@ -53,10 +53,8 @@
         Point minPt = nc.getPoint(mi), maxPt = nc.getPoint(ma);
 
-        // downloadAndPaintVisible in WMSLayer.java requests visible images only
-        // so this path is never hit. 
         /* this is isVisible() but taking dx, dy into account */
-        /*if(!(g.hitClip(minPt.x, maxPt.y, maxPt.x - minPt.x, minPt.y - maxPt.y))) {
+        if(!(g.hitClip(minPt.x, maxPt.y, maxPt.x - minPt.x, minPt.y - maxPt.y))) {
             return false;
-        }*/
+        }
         
         // Width and height flicker about 2 pixels due to rounding errors, typically only 1
@@ -65,4 +63,8 @@
         int diffx = reImgHash.width - width;
         int diffy = reImgHash.height - height;
+        
+        // This happens if you zoom outside the world
+        if(width == 0 || height == 0)
+            return false;
         
         // We still need to re-render if the requested size is larger (otherwise we'll have black lines)
