Changeset 10684 in josm
- Timestamp:
- 2016-07-31T12:36:17+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Geometry.java
r10662 r10684 564 564 if (inter.isEmpty() || bounds.getHeight()*bounds.getWidth() <= eps) { 565 565 return PolygonIntersection.OUTSIDE; 566 } else if ( inter.equals(a1)) {566 } else if (a2.getBounds2D().contains(a1.getBounds2D()) && inter.equals(a1)) { 567 567 return PolygonIntersection.FIRST_INSIDE_SECOND; 568 } else if ( inter.equals(a2)) {568 } else if (a1.getBounds2D().contains(a2.getBounds2D()) && inter.equals(a2)) { 569 569 return PolygonIntersection.SECOND_INSIDE_FIRST; 570 570 } else {
Note:
See TracChangeset
for help on using the changeset viewer.