- Timestamp:
- 2010-07-21T08:35:01+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/FilterMatcher.java
r3367 r3379 77 77 private boolean allParentWaysFiltered(OsmPrimitive primitive, boolean hidden) { 78 78 List<OsmPrimitive> refs = primitive.getReferrers(); 79 if (refs.isEmpty()) 80 return false; 79 boolean foundWay = false; 81 80 82 81 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 } 85 87 } 86 88 87 return true;89 return foundWay; 88 90 } 89 91
Note:
See TracChangeset
for help on using the changeset viewer.