Changeset 12537 in josm for trunk/src/org/openstreetmap/josm/actions/OrthogonalizeAction.java
- Timestamp:
- 2017-07-30T00:22:46+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/OrthogonalizeAction.java
r12527 r12537 75 75 * Remember movements, so the user can later undo it for certain nodes 76 76 */ 77 private static final Map<Node, EastNorth> rememberMovements= new HashMap<>();77 private static final Map<Node, EastNorth> REMEMBER_MOVEMENTS = new HashMap<>(); 78 78 79 79 /** … … 108 108 if (!(p instanceof Node)) throw new InvalidUserInputException("selected object is not a node"); 109 109 Node n = (Node) p; 110 if ( rememberMovements.containsKey(n)) {111 EastNorth tmp = rememberMovements.get(n);110 if (REMEMBER_MOVEMENTS.containsKey(n)) { 111 EastNorth tmp = REMEMBER_MOVEMENTS.get(n); 112 112 commands.add(new MoveCommand(n, -tmp.east(), -tmp.north())); 113 rememberMovements.remove(n);113 REMEMBER_MOVEMENTS.remove(n); 114 114 } 115 115 } … … 209 209 } else { 210 210 if (nodeList.size() == 2 || nodeList.isEmpty()) { 211 OrthogonalizeAction.rememberMovements.clear();211 REMEMBER_MOVEMENTS.clear(); 212 212 final Collection<Command> commands = new LinkedList<>(); 213 213 … … 424 424 throw new AssertionError("heading node has changed"); 425 425 } else { 426 OrthogonalizeAction.rememberMovements.put(n, new EastNorth(dx, dy));426 REMEMBER_MOVEMENTS.put(n, new EastNorth(dx, dy)); 427 427 commands.add(new MoveCommand(n, dx, dy)); 428 428 }
Note:
See TracChangeset
for help on using the changeset viewer.