Ignore:
Timestamp:
2012-04-05T17:29:22+02:00 (12 years ago)
Author:
simon04
Message:

(hopefully) fix #7574 - NameTemplate stopped working

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPreset.java

    r5164 r5169  
    16921692    }
    16931693
     1694    public boolean typeMatches(Collection<PresetType> t) {
     1695        return t == null || types == null || types.containsAll(t);
     1696    }
     1697
    16941698    public boolean matches(Collection<PresetType> t, Map<String, String> tags, boolean onlyShowable) {
    16951699        if (onlyShowable && !isShowable()) {
    16961700            return false;
    1697         } else if (t != null && types != null && !types.containsAll(t)) {
     1701        } else if (!typeMatches(t)) {
    16981702            return false;
    16991703        }
Note: See TracChangeset for help on using the changeset viewer.