Ignore:
Timestamp:
2015-05-18T22:57:22+02:00 (7 years ago)
Author:
Don-vip
Message:

see #11447 - partial revert of r8384

Location:
trunk/src/org/openstreetmap/josm/tools
Files:
3 edited

Legend:

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

    r8384 r8393  
    277277                            if (playingUrl != command.url() ||
    278278                                    stateChange != State.PAUSED ||
    279                                     Double.doubleToRawLongBits(offset) != 0)
     279                                    offset != 0)
    280280                            {
    281281                                if (audioInputStream != null) {
  • trunk/src/org/openstreetmap/josm/tools/Geometry.java

    r8387 r8393  
    352352        // Solve the equations
    353353        double det = a1 * b2 - a2 * b1;
    354         if (Double.doubleToRawLongBits(det) == 0)
     354        if (det == 0)
    355355            return null; // Lines are parallel
    356356
     
    388388
    389389        //segment zero length
    390         if (Double.doubleToRawLongBits(ldx) == 0 && Double.doubleToRawLongBits(ldy) == 0)
     390        if (ldx == 0 && ldy == 0)
    391391            return p1;
    392392
     
    828828            b[i] = pt1.north() - pt2.north();
    829829            double d = Math.sqrt(a[i]*a[i] + b[i]*b[i]);
    830             if (Double.doubleToRawLongBits(d) == 0) return null;
     830            if(d == 0) return null;
    831831            a[i] /= d;
    832832            b[i] /= d;
  • trunk/src/org/openstreetmap/josm/tools/ImageProvider.java

    r8384 r8393  
    11801180        // convert rotatedAngle to an integer value from 0 to 360
    11811181        Long originalAngle = Math.round(rotatedAngle % 360);
    1182         if (Double.doubleToRawLongBits(rotatedAngle) != 0 && originalAngle == 0) {
     1182        if (rotatedAngle != 0 && originalAngle == 0) {
    11831183            originalAngle = 360L;
    11841184        }
     
    11971197                // convert originalAngle to a value from 0 to 90
    11981198                double angle = originalAngle % 90;
    1199                 if (originalAngle != 0 && Double.doubleToRawLongBits(angle) == 0) {
     1199                if (originalAngle != 0 && angle == 0) {
    12001200                    angle = 90.0;
    12011201                }
Note: See TracChangeset for help on using the changeset viewer.