Changeset 4516 in josm for trunk


Ignore:
Timestamp:
2011-10-14T12:51:11+02:00 (13 years ago)
Author:
stoecker
Message:

fix #6959 - accept valid tiles in tole downloader single entry field

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/bbox/TileSelectionBBoxChooser.java

    r4310 r4516  
    540540                return false;
    541541            }
    542             if (x < 0 || x >= Math.pow(2, zoom -1)) return false;
     542            if (x < 0 || x >= Math.pow(2, zoom)) return false;
    543543            int y;
    544544            try {
     
    547547                return false;
    548548            }
    549             if (y < 0 || y >= Math.pow(2, zoom -1)) return false;
     549            if (y < 0 || y >= Math.pow(2, zoom)) return false;
    550550
    551551            tileBounds = new TileBounds(new Point(x,y), new Point(x,y), zoom);
Note: See TracChangeset for help on using the changeset viewer.