- Timestamp:
- 2017-04-10T03:37:29+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/routines/DomainValidator.java
r11861 r11880 2014 2014 try { 2015 2015 final String ascii = IDN.toASCII(input); 2016 if (I DNBUGHOLDER.IDN_TOASCII_PRESERVES_TRAILING_DOTS) {2016 if (IdnBugHolder.IDN_TOASCII_PRESERVES_TRAILING_DOTS) { 2017 2017 return ascii; 2018 2018 } … … 2042 2042 } 2043 2043 2044 private static class I DNBUGHOLDER{2044 private static class IdnBugHolder { 2045 2045 private static boolean keepsTrailingDot() { 2046 2046 final String input = "a."; // must be a valid name -
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.