Ignore:
Timestamp:
2015-05-17T17:21:01+02:00 (9 years ago)
Author:
Don-vip
Message:

fix some Findbugs warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/bbox/SlippyMapBBoxChooser.java

    r8384 r8387  
    306306
    307307        this.bbox = bbox;
    308         double minLon = bbox.getMinLon();
    309         double maxLon = bbox.getMaxLon();
    310 
    311         if (bbox.crosses180thMeridian()) {
    312             minLon -= 360.0;
    313         }
    314 
    315308        iSelectionRectStart = new Coordinate(bbox.getMinLat(), bbox.getMinLon());
    316309        iSelectionRectEnd = new Coordinate(bbox.getMaxLat(), bbox.getMaxLon());
    317310
    318311        // calc the screen coordinates for the new selection rectangle
    319         MapMarkerDot xmin_ymin = new MapMarkerDot(bbox.getMinLat(), bbox.getMinLon());
    320         MapMarkerDot xmax_ymax = new MapMarkerDot(bbox.getMaxLat(), bbox.getMaxLon());
     312        MapMarkerDot min = new MapMarkerDot(bbox.getMinLat(), bbox.getMinLon());
     313        MapMarkerDot max = new MapMarkerDot(bbox.getMaxLat(), bbox.getMaxLon());
    321314
    322315        List<MapMarker> marker = new ArrayList<>(2);
    323         marker.add(xmin_ymin);
    324         marker.add(xmax_ymax);
     316        marker.add(min);
     317        marker.add(max);
    325318        setMapMarkerList(marker);
    326319        setDisplayToFitMapMarkers();
Note: See TracChangeset for help on using the changeset viewer.