Ignore:
Timestamp:
2014-07-07T18:40:16+02:00 (5 years ago)
Author:
akks
Message:

Fix resource leaks when closing map in Lasso mode, see #10104

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/LassoModeAction.java

    r7224 r7293  
    66import org.openstreetmap.josm.Main;
    77import org.openstreetmap.josm.actions.mapmode.MapMode;
     8import org.openstreetmap.josm.gui.layer.Layer;
    89import org.openstreetmap.josm.tools.ImageProvider;
    910
     
    3536        super.exitMode();
    3637    }
     38
     39    @Override
     40    public boolean layerIsSupported(Layer l) {
     41        return Main.map.mapModeSelect.layerIsSupported(l);
     42    }
    3743}
Note: See TracChangeset for help on using the changeset viewer.