Changeset 17384 in osm


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

Cleanup of deprecated layer API

Location:
applications/editors/josm/plugins/surveyor
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/surveyor/build.xml

    r16625 r17384  
    3737                <attribute name="Plugin-Description" value="Allow adding markers/nodes on current gps positions."/>
    3838                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/Surveyor"/>
    39                 <attribute name="Plugin-Mainversion" value="1815"/>
     39                <attribute name="Plugin-Mainversion" value="2012"/>
    4040                <attribute name="Plugin-Requires" value="livegps"/>
    4141                <attribute name="Plugin-Stage" value="60"/>
  • 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.