- Timestamp:
- 2018-02-06T21:03:30+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java
r13272 r13386 125 125 import org.openstreetmap.josm.tools.MemoryManager.NotEnoughMemoryException; 126 126 import org.openstreetmap.josm.tools.Utils; 127 import org.openstreetmap.josm.tools.bugreport.BugReport; 127 128 128 129 /** … … 1440 1441 this.minZoom = minZoom; 1441 1442 this.maxZoom = maxZoom; 1443 if (minZoom > maxZoom) { 1444 throw new IllegalArgumentException(minZoom + " > " + maxZoom); 1445 } 1442 1446 this.tileSets = new AbstractTileSourceLayer.TileSet[maxZoom - minZoom + 1]; 1443 1447 } … … 1883 1887 1884 1888 private void doPaint(MapViewGraphics graphics) { 1885 drawInViewArea(graphics.getDefaultGraphics(), graphics.getMapView(), graphics.getClipBounds().getProjectionBounds()); 1889 try { 1890 drawInViewArea(graphics.getDefaultGraphics(), graphics.getMapView(), graphics.getClipBounds().getProjectionBounds()); 1891 } catch (IllegalArgumentException e) { 1892 throw BugReport.intercept(e) 1893 .put("graphics", graphics).put("tileSource", tileSource).put("currentZoomLevel", currentZoomLevel); 1894 } 1886 1895 } 1887 1896
Note:
See TracChangeset
for help on using the changeset viewer.