Ignore:
Timestamp:
2015-05-16T14:21:27+02:00 (9 years ago)
Author:
Don-vip
Message:

fix Findbugs violation - ICAST: Integral division result cast to double

File:
1 edited

Legend:

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

    r8345 r8364  
    370370        if (null == p)
    371371            return new Point();
    372         double x = (p.east()-center.east())/scale + getWidth()/2;
    373         double y = (center.north()-p.north())/scale + getHeight()/2;
     372        double x = (p.east()-center.east())/scale + getWidth()/2d;
     373        double y = (center.north()-p.north())/scale + getHeight()/2d;
    374374        return new Point2D.Double(x, y);
    375375    }
Note: See TracChangeset for help on using the changeset viewer.