Changeset 3379 in josm for trunk/src


Ignore:
Timestamp:
2010-07-21T08:35:01+02:00 (14 years ago)
Author:
jttt
Message:

Fixed #5255 filter: strange info about a negative amount of filtered objects.

File:
1 edited

Legend:

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

    r3367 r3379  
    7777    private boolean allParentWaysFiltered(OsmPrimitive primitive, boolean hidden) {
    7878        List<OsmPrimitive> refs = primitive.getReferrers();
    79         if (refs.isEmpty())
    80             return false;
     79        boolean foundWay = false;
    8180
    8281        for (OsmPrimitive p: refs) {
    83             if (p instanceof Way && !getState(p, hidden))
    84                 return false;
     82            if (p instanceof Way) {
     83                foundWay = true;
     84                if (!getState(p, hidden))
     85                    return false;
     86            }
    8587        }
    8688
    87         return true;
     89        return foundWay;
    8890    }
    8991
Note: See TracChangeset for help on using the changeset viewer.