Changeset 11389 in josm for trunk/src/org/openstreetmap/josm/actions
- Timestamp:
- 2016-12-13T12:41:03+01:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/actions
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/CombineWayAction.java
r11114 r11389 150 150 Collections.reverse(path); 151 151 List<Way> tempWays = unreversedWays; 152 unreversedWays = reversedWays;152 unreversedWays = null; 153 153 reversedWays = tempWays; 154 154 } -
trunk/src/org/openstreetmap/josm/actions/OrthogonalizeAction.java
r11374 r11389 46 46 "(Afterwards, you can undo the movement for certain nodes:<br>"+ 47 47 "Select them and press the shortcut for Orthogonalize / Undo. The default is Shift-Q.)"); 48 49 private static final double EPSILON = 1E-6; 48 50 49 51 /** … … 415 417 final double dy = tmp.north() - n.getEastNorth().north(); 416 418 if (headingNodes.contains(n)) { // The heading nodes should not have changed 417 final double epsilon = 1E-6; 418 if (Math.abs(dx) > Math.abs(epsilon * tmp.east()) || 419 Math.abs(dy) > Math.abs(epsilon * tmp.east())) 420 throw new AssertionError(); 419 if (Math.abs(dx) > Math.abs(EPSILON * tmp.east()) || 420 Math.abs(dy) > Math.abs(EPSILON * tmp.east())) 421 throw new AssertionError("heading node has changed"); 421 422 } else { 422 423 OrthogonalizeAction.rememberMovements.put(n, new EastNorth(dx, dy));
Note:
See TracChangeset
for help on using the changeset viewer.