Ignore:
Timestamp:
2015-12-27T00:49:50+01:00 (8 years ago)
Author:
bastiK
Message:

restore old reference point for wms tiling (see #12186)
use negative tile indices for tiles left to this point

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java

    r9078 r9176  
    879879     */
    880880    private Tile getTile(int x, int y, int zoom) {
    881         if (x < 0 || x > tileSource.getTileXMax(zoom) || y < 0 || y > tileSource.getTileYMax(zoom))
     881        if (x < tileSource.getTileXMin(zoom) || x > tileSource.getTileXMax(zoom) || y < tileSource.getTileYMin(zoom) || y > tileSource.getTileYMax(zoom))
    882882            return null;
    883883        return tileCache.getTile(tileSource, x, y, zoom);
Note: See TracChangeset for help on using the changeset viewer.