Changeset 12388 in josm for trunk


Ignore:
Timestamp:
2017-06-10T14:15:29+02:00 (7 years ago)
Author:
Don-vip
Message:

see #14929 - change signature of FilterWorker.clearFilterFlags

File:
1 edited

Legend:

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

    r12383 r12388  
    4040     * @param all the collection of primitives for that the filter state should be updated
    4141     * @param filterMatcher the FilterMatcher
    42      * @return true, if the filter state (normal / disabled / hidden)
    43      * of any primitive has changed in the process
     42     * @return true, if the filter state (normal / disabled / hidden) of any primitive has changed in the process
    4443     */
    4544    public static boolean executeFilters(Collection<OsmPrimitive> all, FilterMatcher filterMatcher) {
     
    8988     * Clear all filter flags, i.e.&nbsp;turn off filters.
    9089     * @param prims the primitives
     90     * @return true, if the filter state (normal / disabled / hidden) of any primitive has changed in the process
     91     * @since 12388 (signature)
    9192     */
    92     public static void clearFilterFlags(Collection<OsmPrimitive> prims) {
     93    public static boolean clearFilterFlags(Collection<OsmPrimitive> prims) {
     94        boolean changed = false;
    9395        for (OsmPrimitive osm : prims) {
    94             osm.unsetDisabledState();
     96            changed |= osm.unsetDisabledState();
    9597        }
     98        return changed;
    9699    }
    97100}
Note: See TracChangeset for help on using the changeset viewer.