Ignore:
Timestamp:
2009-01-11T16:14:58+01:00 (16 years ago)
Author:
stoecker
Message:

added link to presets, fix #1675

File:
1 edited

Legend:

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

    r1243 r1245  
    433433        putDefault(key, def);
    434434        String v = get(key);
    435         try {
    436             return Double.parseDouble(v == null ? def : v);
    437         } catch(NumberFormatException e) {
    438             // fall out
    439         }
     435        if(v != null && v.length() != 0)
     436            try { return Double.parseDouble(v); } catch(NumberFormatException e) {}
     437        try { return Double.parseDouble(def); } catch(NumberFormatException e) {}
    440438        return 0.0;
    441439    }
Note: See TracChangeset for help on using the changeset viewer.