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/layer/markerlayer/ImageMarker.java

    r8056 r8384  
    7979        int h = img.getHeight(null);
    8080        if (w>h) {
    81             h = Math.round(maxSize*((float)h/w));
     81            h = (int) Math.round(maxSize*((double)h/w));
    8282            w = maxSize;
    8383        } else {
    84             w = Math.round(maxSize*((float)w/h));
     84            w = (int) Math.round(maxSize*((double)w/h));
    8585            h = maxSize;
    8686        }
Note: See TracChangeset for help on using the changeset viewer.