Changeset 26997 in osm
- Timestamp:
- 2011-10-31T19:06:59+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/simplifyarea/src/sk/zdila/josm/plugin/simplify/SimplifyAreaAction.java
r25883 r26997 230 230 Node node2 = null; 231 231 232 final int len = nodes.size(); 233 if (len == 0) { 234 break; 235 } 236 232 237 // find smallest distance 233 for (int i = 0 , len = nodes.size(); i <= len; i++) {238 for (int i = 0; i <= len; i++) { 234 239 final Node n1 = nodes.get(i % len); 235 240 final Node n2 = nodes.get((i + 1) % len); … … 354 359 final int size2 = nodes.size(); 355 360 361 if (size2 == 0) { 362 break; 363 } 364 356 365 for (int i = 0, len = size2 + (closed ? 2 : 1); i < len; i++) { 357 366 final int index = i % size2;
Note:
See TracChangeset
for help on using the changeset viewer.