Changeset 4944 in josm for trunk


Ignore:
Timestamp:
2012-02-15T22:20:42+01:00 (13 years ago)
Author:
xeen
Message:

fix #2410

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/LoadAndZoomHandler.java

    r4884 r4944  
    6464        double maxlon = 0;
    6565        try {
    66             minlat = Double.parseDouble(args.get("bottom"));
    67             maxlat = Double.parseDouble(args.get("top"));
    68             minlon = Double.parseDouble(args.get("left"));
    69             maxlon = Double.parseDouble(args.get("right"));
     66            minlat = LatLon.roundToOsmPrecision(Double.parseDouble(args.get("bottom")));
     67            maxlat = LatLon.roundToOsmPrecision(Double.parseDouble(args.get("top")));
     68            minlon = LatLon.roundToOsmPrecision(Double.parseDouble(args.get("left")));
     69            maxlon = LatLon.roundToOsmPrecision(Double.parseDouble(args.get("right")));
    7070            boolean newLayer = isLoadInNewLayer();
    7171
Note: See TracChangeset for help on using the changeset viewer.