Changeset 6869 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2014-02-18T17:21:45+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Geometry.java
r6841 r6869 452 452 boolean begin = true; 453 453 for (Node n : polygon) { 454 if (begin) { 455 path.moveTo(n.getEastNorth().getX(), n.getEastNorth().getY()); 456 begin = false; 457 } else { 458 path.lineTo(n.getEastNorth().getX(), n.getEastNorth().getY()); 454 EastNorth en = n.getEastNorth(); 455 if (en != null) { 456 if (begin) { 457 path.moveTo(en.getX(), en.getY()); 458 begin = false; 459 } else { 460 path.lineTo(en.getX(), en.getY()); 461 } 459 462 } 460 463 }
Note:
See TracChangeset
for help on using the changeset viewer.