Changeset 17530 in osm for applications/editors/josm/plugins/editgpx/src/org/openstreetmap
- Timestamp:
- 2009-09-08T23:20:23+02:00 (15 years ago)
- 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 112 112 synchronized(layerImport.importing) { 113 113 for(Node n: dataSet.nodes) { 114 if (!n. deleted) {114 if (!n.isDeleted()) { 115 115 Point pnt = Main.map.mapView.getPoint(n.getEastNorth()); 116 116 g.drawOval(pnt.x - 2, pnt.y - 2, 4, 4); … … 143 143 //add all ways 144 144 for (Way w : dataSet.ways) { 145 if (w.incomplete || w. deleted) continue;145 if (w.incomplete || w.isDeleted()) continue; 146 146 GpxTrack trk = new GpxTrack(); 147 147 gpxData.tracks.add(trk); … … 152 152 ArrayList<WayPoint> trkseg = null; 153 153 for (Node n : w.getNodes()) { 154 if (n.incomplete || n. deleted) {154 if (n.incomplete || n.isDeleted()) { 155 155 trkseg = null; 156 156 continue; … … 179 179 // add nodes as waypoints 180 180 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; 182 182 183 183 Date tstamp = n.getTimestamp(); -
applications/editors/josm/plugins/editgpx/src/org/openstreetmap/josm/plugins/editgpx/EditGpxMode.java
r16294 r17530 70 70 Point p = Main.map.mapView.getPoint(n); 71 71 if (r.contains(p)) { 72 n.deleted = true; //only set as deleted. this makes reset to beginning possible72 n.setDeleted(true); 73 73 } 74 74 }
Note:
See TracChangeset
for help on using the changeset viewer.