Ignore:
Timestamp:
2018-08-31T00:57:57+02:00 (3 months ago)
Author:
Don-vip
Message:

fix #16698, see #15670 - make sure filters are executed (costly operation) only when necessary:

  • data changes imply execution of filters only when at least a filter is enabled
  • filter changes imply execution of filters even is no filter is enabled
  • filter dataset change events should not trigger a new filter execution!
File:
1 edited

Legend:

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

    r13309 r14206  
    114114
    115115    /**
     116     * Determines if at least one filter is enabled.
     117     * @return {@code true} if at least one filter is enabled
     118     * @since 14206
     119     */
     120    public boolean hasFilters() {
     121        return !hiddenFilters.isEmpty() || !disabledFilters.isEmpty();
     122    }
     123
     124    /**
    116125     * Adds a filter to the currently used filters
    117126     * @param filter the filter to add
Note: See TracChangeset for help on using the changeset viewer.