Changeset 12544 in josm for trunk/src/org
- Timestamp:
- 2017-07-31T00:51:52+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Selector.java
r12541 r12544 282 282 public void visit(Node n) { 283 283 if (e.child == null && left.matches(new Environment(n).withParent(e.osm)) 284 && ( e.osm instanceof Way && Geometry.nodeInsidePolygon(n, ((Way) e.osm).getNodes()))284 && ((e.osm instanceof Way && Geometry.nodeInsidePolygon(n, ((Way) e.osm).getNodes())) 285 285 || (e.osm instanceof Relation && ( 286 (Relation) e.osm).isMultipolygon() && Geometry.isNodeInsideMultiPolygon(n, (Relation) e.osm, null))) {286 (Relation) e.osm).isMultipolygon() && Geometry.isNodeInsideMultiPolygon(n, (Relation) e.osm, null)))) { 287 287 e.child = n; 288 288 } … … 292 292 public void visit(Way w) { 293 293 if (e.child == null && left.matches(new Environment(w).withParent(e.osm)) 294 && ( e.osm instanceof Way && Geometry.PolygonIntersection.FIRST_INSIDE_SECOND.equals(294 && ((e.osm instanceof Way && Geometry.PolygonIntersection.FIRST_INSIDE_SECOND.equals( 295 295 Geometry.polygonIntersection(w.getNodes(), ((Way) e.osm).getNodes()))) 296 296 || (e.osm instanceof Relation && ( 297 297 (Relation) e.osm).isMultipolygon() 298 && Geometry.isPolygonInsideMultiPolygon(w.getNodes(), (Relation) e.osm, null))) {298 && Geometry.isPolygonInsideMultiPolygon(w.getNodes(), (Relation) e.osm, null)))) { 299 299 e.child = w; 300 300 }
Note:
See TracChangeset
for help on using the changeset viewer.