Changeset 11880 in josm for trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java
- Timestamp:
- 2017-04-10T03:37:29+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java
r11858 r11880 640 640 // as a result of the alignment, it is common to round "half integer" values 641 641 // like 1.49999, which is numerically unstable; add small epsilon to resolve this 642 double EPSILON= 1e-3;642 final double epsilon = 1e-3; 643 643 Point2D enOriginAligned = new Point2D.Double( 644 Math.round(enOrigin.getX()) + EPSILON,645 Math.round(enOrigin.getY()) + EPSILON);644 Math.round(enOrigin.getX()) + epsilon, 645 Math.round(enOrigin.getY()) + epsilon); 646 646 EastNorth enShift = mvs.getForView(enOriginAligned.getX(), enOriginAligned.getY()).getEastNorth(); 647 647 newCenter = newCenter.subtract(enShift);
Note:
See TracChangeset
for help on using the changeset viewer.