Changeset 14182 in josm for trunk/src/org/openstreetmap/josm


Ignore:
Timestamp:
2018-08-27T00:19:54+02:00 (10 months ago)
Author:
Don-vip
Message:

fix #16686 - add robustness when drawing hatched area for non-downloaded region

File:
1 edited

Legend:

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

    r14153 r14182  
    499499                g.setPaint(new TexturePaint(hatched, anchorRect));
    500500            }
    501             g.fill(a);
     501            try {
     502                g.fill(a);
     503            } catch (ArrayIndexOutOfBoundsException e) {
     504                // #16686 - AIOOBE in java.awt.TexturePaintContext$Int.setRaster
     505                Logging.error(e);
     506            }
    502507        }
    503508
Note: See TracChangeset for help on using the changeset viewer.