- Timestamp:
- 2015-05-16T14:21:27+02:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java
r8348 r8364 883 883 if (useWiderHighlight) s+=widerHighlight; 884 884 while(s >= size) { 885 int r = (int) Math.floor(s/2 );885 int r = (int) Math.floor(s/2d); 886 886 g.fillRoundRect(p.x-r, p.y-r, s, s, r, r); 887 887 s -= highlightStep; -
trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java
r8345 r8364 370 370 if (null == p) 371 371 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; 374 374 return new Point2D.Double(x, y); 375 375 } -
trunk/src/org/openstreetmap/josm/tools/ExifReader.java
r8244 r8364 207 207 case 8: 208 208 q = -1; 209 ax = width / 2 ;210 ay = width / 2 ;209 ax = width / 2d; 210 ay = width / 2d; 211 211 break; 212 212 case 3: 213 213 q = 2; 214 ax = width / 2 ;215 ay = height / 2 ;214 ax = width / 2d; 215 ay = height / 2d; 216 216 break; 217 217 case 6: 218 218 q = 1; 219 ax = height / 2 ;220 ay = height / 2 ;219 ax = height / 2d; 220 ay = height / 2d; 221 221 break; 222 222 default: -
trunk/src/org/openstreetmap/josm/tools/OsmUrlToBounds.java
r8345 r8364 291 291 public static String getURL(double dlat, double dlon, int zoom) { 292 292 // Truncate lat and lon to something more sensible 293 int decimals = (int) Math.pow(10, zoom / 3 );293 int decimals = (int) Math.pow(10, zoom / 3d); 294 294 double lat = Math.round(dlat * decimals); 295 295 lat /= decimals;
Note:
See TracChangeset
for help on using the changeset viewer.