Changeset 6215 in josm for trunk/src/org/openstreetmap/josm/command
- Timestamp:
- 2013-09-04T00:37:59+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/command/MoveCommand.java
r6173 r6215 151 151 for (Node n : nodes) { 152 152 OldNodeState os = it.next(); 153 n.setEastNorth(os.eastNorth.add(x, y)); 153 if (os.eastNorth != null) { 154 n.setEastNorth(os.eastNorth.add(x, y)); 155 } 154 156 } 155 157 } … … 160 162 if (n == null) 161 163 throw new AssertionError("null detected in node list"); 162 if (n.getEastNorth()== null)163 throw new AssertionError("null coordinates detected in node list");164 165 n.setEastNorth(n.getEastNorth().add(x, y));166 n.setModified(true);164 EastNorth en = n.getEastNorth(); 165 if (en != null) { 166 n.setEastNorth(en.add(x, y)); 167 n.setModified(true); 168 } 167 169 } 168 170 return true;
Note:
See TracChangeset
for help on using the changeset viewer.