Changeset 18472 in osm for applications/editors/josm


Ignore:
Timestamp:
2009-11-06T18:56:03+01:00 (15 years ago)
Author:
dhansen
Message:

Fix

http://josm.openstreetmap.de/ticket/3855
http://josm.openstreetmap.de/ticket/3854

For now, use "Zoom to Layer", or the key '2'.

This should also work around the tons of invalid tile messages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/walkingpapers/src/org/openstreetmap/josm/plugins/walkingpapers/WalkingPapersLayer.java

    r17822 r18472  
    207207                g = bufferImage.getGraphics();
    208208
     209        if (!LatLon.isValidLat(topLeft.lat())  ||
     210            !LatLon.isValidLat(botRight.lat()) ||
     211            !LatLon.isValidLon(topLeft.lon())  ||
     212            !LatLon.isValidLon(botRight.lon()))
     213            return;
     214
    209215                viewportMinX = lonToTileX(topLeft.lon());
    210216                viewportMaxX = lonToTileX(botRight.lon());
     
    366372        @Override
    367373        public void visitBoundingBox(BoundingXYVisitor v) {
     374        if (printBounds != null)
     375            v.visit(printBounds);
    368376        }
    369377
Note: See TracChangeset for help on using the changeset viewer.