Changeset 8833 in josm for trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss
- Timestamp:
- 2015-10-07T22:50:30+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Selector.java
r8741 r8833 256 256 @Override 257 257 public void visit(Way w) { 258 if (e.child == null && left.matches(new Environment(w) )) {258 if (e.child == null && left.matches(new Environment(w).withParent(e.osm))) { 259 259 if (e.osm instanceof Way && Geometry.PolygonIntersection.CROSSING.equals( 260 260 Geometry.polygonIntersection(w.getNodes(), ((Way) e.osm).getNodes()))) { … … 273 273 @Override 274 274 public void visit(Node n) { 275 if (e.child == null && left.matches(new Environment(n) )) {275 if (e.child == null && left.matches(new Environment(n).withParent(e.osm))) { 276 276 if (e.osm instanceof Way && Geometry.nodeInsidePolygon(n, ((Way) e.osm).getNodes()) 277 277 || e.osm instanceof Relation && ( … … 284 284 @Override 285 285 public void visit(Way w) { 286 if (e.child == null && left.matches(new Environment(w) )) {286 if (e.child == null && left.matches(new Environment(w).withParent(e.osm))) { 287 287 if (e.osm instanceof Way && Geometry.PolygonIntersection.FIRST_INSIDE_SECOND.equals( 288 288 Geometry.polygonIntersection(w.getNodes(), ((Way) e.osm).getNodes()))
Note:
See TracChangeset
for help on using the changeset viewer.