Changeset 13386 in josm for trunk/src/org


Ignore:
Timestamp:
2018-02-06T21:03:30+01:00 (6 years ago)
Author:
Don-vip
Message:

see #15882 - add debug info

File:
1 edited

Legend:

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

    r13272 r13386  
    125125import org.openstreetmap.josm.tools.MemoryManager.NotEnoughMemoryException;
    126126import org.openstreetmap.josm.tools.Utils;
     127import org.openstreetmap.josm.tools.bugreport.BugReport;
    127128
    128129/**
     
    14401441            this.minZoom = minZoom;
    14411442            this.maxZoom = maxZoom;
     1443            if (minZoom > maxZoom) {
     1444                throw new IllegalArgumentException(minZoom + " > " + maxZoom);
     1445            }
    14421446            this.tileSets = new AbstractTileSourceLayer.TileSet[maxZoom - minZoom + 1];
    14431447        }
     
    18831887
    18841888        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            }
    18861895        }
    18871896
Note: See TracChangeset for help on using the changeset viewer.