Changeset 17858 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2021-05-03T19:51:10+02:00 (4 years ago)
Author:
GerdP
Message:

fix #20839: Notification about hidden objects by filter without any active filter
regression of r17852

  • check isDisabledAndHidden() instead of !isDrawable()
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/ValidationTask.java

    r17852 r17858  
    106106        }
    107107
    108         if (errors.stream().anyMatch(e -> !e.getPrimitives().stream().allMatch(OsmPrimitive::isDrawable))) {
     108        if (errors.stream().anyMatch(e -> e.getPrimitives().stream().anyMatch(OsmPrimitive::isDisabledAndHidden))) {
    109109            final String msg = "<b>" + tr("Validation results contain elements hidden by a filter.") + "</b><br/>"
    110110                    + tr("Please review active filters to see the hidden results.");
Note: See TracChangeset for help on using the changeset viewer.