Ignore:
Timestamp:
2009-08-30T18:28:38+02:00 (15 years ago)
Author:
guggis
Message:

Cleanup of deprecated layer API

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/util/LayerUtil.java

    r13726 r17384  
    2525        if(Main.map != null && Main.map.mapView != null) {
    2626            for(Layer layer : Main.map.mapView.getAllLayers()) {
    27                 if(layerName.equals(layer.name) && layerType.isAssignableFrom(layer.getClass())) {
     27                if(layerName.equals(layer.getName()) && layerType.isAssignableFrom(layer.getClass())) {
    2828                    result = layer;
    2929                    break;
Note: See TracChangeset for help on using the changeset viewer.