Ignore:
Timestamp:
2009-09-08T23:20:23+02:00 (15 years ago)
Author:
guggis
Message:

Replacing deprecated field access - update to JOSM r2082

Location:
applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/EditGpxLayer.java

    r17369 r17530  
    112112        synchronized(layerImport.importing) {
    113113            for(Node n: dataSet.nodes) {
    114                 if (!n.deleted) {
     114                if (!n.isDeleted()) {
    115115                    Point pnt = Main.map.mapView.getPoint(n.getEastNorth());
    116116                    g.drawOval(pnt.x - 2, pnt.y - 2, 4, 4);
     
    143143        //add all ways
    144144        for (Way w : dataSet.ways) {
    145             if (w.incomplete || w.deleted) continue;
     145            if (w.incomplete || w.isDeleted()) continue;
    146146            GpxTrack trk = new GpxTrack();
    147147            gpxData.tracks.add(trk);
     
    152152            ArrayList<WayPoint> trkseg = null;
    153153            for (Node n : w.getNodes()) {
    154                 if (n.incomplete || n.deleted) {
     154                if (n.incomplete || n.isDeleted()) {
    155155                    trkseg = null;
    156156                    continue;
     
    179179        // add nodes as waypoints
    180180        for (Node n : dataSet.nodes) {
    181             if (n.incomplete || n.deleted || doneNodes.contains(n)) continue;
     181            if (n.incomplete || n.isDeleted() || doneNodes.contains(n)) continue;
    182182
    183183            Date tstamp = n.getTimestamp();
  • applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/EditGpxMode.java

    r16294 r17530  
    7070                Point p = Main.map.mapView.getPoint(n);
    7171                if (r.contains(p)) {
    72                     n.deleted = true; //only set as deleted. this makes reset to beginning possible
     72                        n.setDeleted(true);
    7373                }
    7474            }
Note: See TracChangeset for help on using the changeset viewer.