Changeset 14586 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2018-12-22T13:07:40+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/ShapeClipper.java
r14584 r14586 69 69 points[num++] = x; 70 70 points[num++] = y; 71 } else if (type != PathIterator.SEG_CLOSE) { 72 //Logging.warn("unhandled path iterator");71 // } else if (type != PathIterator.SEG_CLOSE) { 72 //Logging.warn("unhandled path iterator"); 73 73 } 74 74 pit.next(); … … 116 116 if (num < 2) 117 117 return null; 118 if (points[0] ==points[num - 2]&&points[1]==points[num - 1])118 if (Double.compare(points[0], points[num - 2]) == 0 && Double.compare(points[1], points[num - 1]) == 0) { 119 119 num -= 2; 120 } 120 121 if (num < 6) 121 122 return null; … … 154 155 155 156 int countVals = num; 156 if (points[0] ==points[num - 2]&&points[1]==points[num - 1]) {157 if (Double.compare(points[0], points[num - 2]) == 0 && Double.compare(points[1], points[num - 1]) == 0) { 157 158 countVals -= 2; 158 159 } 160 159 161 double[] outputList = points; 160 162 double[] input;
Note:
See TracChangeset
for help on using the changeset viewer.
