Changeset 8364 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2015-05-16T14:21:27+02:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/tools
- Files:
-
- 2 edited
-
ExifReader.java (modified) (1 diff)
-
OsmUrlToBounds.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
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.
