Changeset 6322 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2013-10-25T17:20:49+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/Cascade.java
r6310 r6322 121 121 if (o instanceof Integer) 122 122 return new Float((Integer) o); 123 if (o instanceof String ) {123 if (o instanceof String && !((String) o).isEmpty()) { 124 124 try { 125 float f = Float.parseFloat((String) o); 126 return f; 125 return Float.parseFloat((String) o); 127 126 } catch (NumberFormatException e) { 128 Main. warn(e);127 Main.debug("'"+o+"' cannot be converted to float"); 129 128 } 130 129 }
Note:
See TracChangeset
for help on using the changeset viewer.