Ignore:
Timestamp:
2015-05-17T15:52:24+02:00 (9 years ago)
Author:
Don-vip
Message:

squid:S1244 - Floating point numbers should not be tested for equality

File:
1 edited

Legend:

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

    r8378 r8384  
    296296    @Override
    297297    public void setBoundingBox(Bounds bbox) {
    298         if (bbox == null || (bbox.getMinLat() == 0.0 && bbox.getMinLon() == 0.0
    299                 && bbox.getMaxLat() == 0.0 && bbox.getMaxLon() == 0.0)) {
     298        if (bbox == null || (Double.doubleToRawLongBits(bbox.getMinLat()) == 0 && Double.doubleToRawLongBits(bbox.getMinLon()) == 0
     299                && Double.doubleToRawLongBits(bbox.getMaxLat()) == 0 && Double.doubleToRawLongBits(bbox.getMaxLon()) == 0)) {
    300300            this.bbox = null;
    301301            iSelectionRectStart = null;
Note: See TracChangeset for help on using the changeset viewer.