Changeset 10496 in josm for trunk/src/org


Ignore:
Timestamp:
2016-06-26T23:42:27+02:00 (8 years ago)
Author:
Don-vip
Message:

fix #13072 - Change missing layer painter action from crash to error message (patch by michael2402) - gsoc-core

File:
1 edited

Legend:

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

    r10477 r10496  
    733733        LayerPainter painter = registeredLayers.remove(layer);
    734734        if (painter == null) {
    735             throw new IllegalArgumentException("The painter for layer " + layer + " was not registered.");
     735            Main.error("The painter for layer " + layer + " was not registered.");
     736            return;
    736737        }
    737738        painter.detachFromMapView(new MapViewEvent(this, false));
Note: See TracChangeset for help on using the changeset viewer.