Changeset 4054 in josm
- Timestamp:
- 2011-04-21T00:12:51+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/Way.java
r4053 r4054 75 75 Node last = null; 76 76 int count = nodes.size(); 77 for(int i = 0; i < count && count > 2; ++i) {77 for(int i = 0; i < count && count > 2;) { 78 78 Node n = nodes.get(i); 79 79 if(last == n) { 80 80 nodes.remove(i); 81 81 --count; 82 } 83 last = n; 82 } else { 83 last = n; 84 ++i; 85 } 84 86 } 85 87 return nodes;
Note:
See TracChangeset
for help on using the changeset viewer.