Changeset 17037 in josm
- Timestamp:
- 2020-09-18T10:25:02+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Selector.java
r16438 r17037 15 15 import java.util.Map; 16 16 import java.util.Objects; 17 import java.util.Set; 17 18 import java.util.function.IntFunction; 18 19 import java.util.function.IntSupplier; … … 362 363 @Override 363 364 public void visit(Collection<? extends IPrimitive> primitives) { 364 List<? extends IPrimitive> toIgnore;365 Set<? extends IPrimitive> toIgnore; 365 366 if (e.osm instanceof Relation) { 366 toIgnore = (( IRelation<?>) e.osm).getMemberPrimitivesList();367 toIgnore = ((Relation) e.osm).getMemberPrimitives(); 367 368 } else { 368 369 toIgnore = null; … … 373 374 && left.matches(new Environment(p).withParent(e.osm)) && isArea(p) 374 375 && (toIgnore == null || !toIgnore.contains(p))) { 376 if (e.osm instanceof Way && ((Way)e.osm).referrers(Relation.class).anyMatch(ref -> ref == p)) 377 continue; 375 378 visitArea(p); 376 379 }
Note:
See TracChangeset
for help on using the changeset viewer.