Changeset 1245 in josm for trunk/src/org/openstreetmap/josm/data
- Timestamp:
- 2009-01-11T16:14:58+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/Preferences.java
r1243 r1245 433 433 putDefault(key, def); 434 434 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) {} 440 438 return 0.0; 441 439 }
Note:
See TracChangeset
for help on using the changeset viewer.