Changeset 17377 in osm for applications/editors/josm/plugins/measurement/src/org
- Timestamp:
- 2009-08-30T18:16:10+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/measurement/src/org/openstreetmap/josm/plugins/measurement/MeasurementDialog.java
r16317 r17377 126 126 Way w = (Way)p; 127 127 Node lastN = null; 128 for(Node n: w. nodes){128 for(Node n: w.getNodes()){ 129 129 if(lastN != null){ 130 130 length += MeasurementLayer.calcDistance(lastN.getCoor(), n.getCoor()); … … 135 135 lastN = n; 136 136 } 137 if (lastN != null && lastN == w. nodes.iterator().next()){137 if (lastN != null && lastN == w.getNodes().iterator().next()){ 138 138 area = Math.abs(area / 2); 139 139 }else{
Note:
See TracChangeset
for help on using the changeset viewer.