Ignore:
Timestamp:
2012-08-26T17:16:50+02:00 (9 years ago)
Author:
Don-vip
Message:

fix #7999 - Change r5464 broke display of texts for marker layer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/preferences/CachedProperty.java

    r5464 r5478  
    1212    private int updateCount;
    1313
    14     protected CachedProperty(String key, T defaultValue, String defaultValueAsString) {
    15         super(key, defaultValue);
     14    protected CachedProperty(String key, String defaultValueAsString) {
     15        super(key, null);
    1616        Main.pref.addPreferenceChangeListener(this);
    1717        this.defaultValueAsString = defaultValueAsString;
     
    5050        return updateCount;
    5151    }
     52   
     53    @Override
     54    public T getDefaultValue() {
     55        return fromString(getDefaultValueAsString());
     56    }
    5257
    5358    public String getDefaultValueAsString() {
Note: See TracChangeset for help on using the changeset viewer.