Ignore:
Timestamp:
2012-02-20T13:18:34+01:00 (12 years ago)
Author:
xeen
Message:

fix #6705

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/OsmUrlToBounds.java

    r4736 r5005  
    5656                b = new Bounds(new LatLon(minlat, minlon), new LatLon(maxlat, maxlon));
    5757            } else {
     58                String z = map.get("zoom");
    5859                b = positionToBounds(parseDouble(map, "lat"),
    5960                        parseDouble(map, "lon"),
    60                         Integer.parseInt(map.get("zoom")));
     61                        z == null ? 18 : Integer.parseInt(z));
    6162            }
    6263        } catch (NumberFormatException x) {
Note: See TracChangeset for help on using the changeset viewer.