- Timestamp:
- 2017-05-13T14:43:25+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/OsmReader.java
r12087 r12136 220 220 LatLon ll = null; 221 221 if (lat != null && lon != null) { 222 ll = new LatLon(Double.parseDouble(lat), Double.parseDouble(lon)); 223 nd.setCoor(ll); 222 try { 223 ll = new LatLon(Double.parseDouble(lat), Double.parseDouble(lon)); 224 nd.setCoor(ll); 225 } catch (NumberFormatException e) { 226 Main.trace(e); 227 } 224 228 } 225 229 readCommon(nd); 226 if (l l != null && !ll.isValid()) {230 if (lat != null && lon != null && (ll == null || !ll.isValid())) { 227 231 throwException(tr("Illegal value for attributes ''lat'', ''lon'' on node with ID {0}. Got ''{1}'', ''{2}''.", 228 232 Long.toString(nd.getId()), lat, lon));
Note:
See TracChangeset
for help on using the changeset viewer.