Changeset 14615 in josm for trunk/src/org/openstreetmap/josm/tools/ShapeClipper.java
- Timestamp:
- 2018-12-30T22:12:38+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/ShapeClipper.java
r14587 r14615 69 69 points[num++] = x; 70 70 points[num++] = y; 71 // } else if (type != PathIterator.SEG_CLOSE) {72 //Logging.warn("unhandled path iterator");73 71 } 74 72 pit.next(); … … 125 123 path.moveTo(lastX, lastY); 126 124 int numOut = 1; 127 for (int i = 2; i < num; ) {128 double x = points[i ++], y = points[i++];125 for (int i = 2; i < num; i += 2) { 126 double x = points[i], y = points[i+1]; 129 127 if (Double.compare(x, lastX) != 0 || Double.compare(y, lastY) != 0) { 130 128 path.lineTo(x, y);
Note:
See TracChangeset
for help on using the changeset viewer.