Changeset 17980 in josm for trunk/src


Ignore:
Timestamp:
2021-07-10T19:07:11+02:00 (3 years ago)
Author:
Don-vip
Message:

fix #21043 - update FilterMatcher#allParentMultipolygonsFiltered (patch by taylor.smock)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/FilterMatcher.java

    r17862 r17980  
    210210    private static boolean allParentMultipolygonsFiltered(IPrimitive primitive, boolean hidden) {
    211211        boolean isExplicit = false;
    212         for (Relation r : new SubclassFilteredCollection<IPrimitive, Relation>(
    213                 primitive.getReferrers(), IPrimitive::isMultipolygon)) {
     212        for (IRelation<?> r : new SubclassFilteredCollection<IPrimitive, IRelation<?>>(
     213                primitive.getReferrers(), i -> i.isMultipolygon() && i instanceof IFilterablePrimitive)) {
    214214            if (!isFiltered(r, hidden))
    215215                return false;
    216             isExplicit |= isFilterExplicit(r, hidden);
     216            isExplicit |= isFilterExplicit((IFilterablePrimitive) r, hidden);
    217217        }
    218218        return isExplicit;
Note: See TracChangeset for help on using the changeset viewer.