Changeset 33687 in osm


Ignore:
Timestamp:
2017-09-30T15:31:14+02:00 (7 years ago)
Author:
donvip
Message:

fix #15364 - catch IAE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/src/org/openstreetmap/josm/plugins/fr/cadastre/actions/mapmode/WMSAdjustAction.java

    r33640 r33687  
    2222import org.openstreetmap.josm.plugins.fr.cadastre.wms.WMSLayer;
    2323import org.openstreetmap.josm.tools.ImageProvider;
     24import org.openstreetmap.josm.tools.Logging;
    2425
    2526public class WMSAdjustAction extends MapMode implements
     
    4445    }
    4546
    46     @Override public void enterMode() {
     47    @Override
     48    public void enterMode() {
    4749        if (MainApplication.getMap() != null) {
    4850            if (MainApplication.getLayerManager().getActiveLayer() instanceof WMSLayer) {
     
    6365    }
    6466
    65     @Override public void exitMode() {
    66         super.exitMode();
     67    @Override
     68    public void exitMode() {
     69        try {
     70            super.exitMode();
     71        } catch (IllegalArgumentException e) {
     72            Logging.error(e);
     73        }
    6774        MainApplication.getMap().mapView.removeMouseListener(this);
    6875        MainApplication.getMap().mapView.removeMouseMotionListener(this);
Note: See TracChangeset for help on using the changeset viewer.