Changeset 6215 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2013-09-04T00:37:59+02:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/SelectAction.java
r6202 r6215 37 37 import org.openstreetmap.josm.command.SequenceCommand; 38 38 import org.openstreetmap.josm.data.coor.EastNorth; 39 import org.openstreetmap.josm.data.coor.LatLon; 39 40 import org.openstreetmap.josm.data.osm.DataSet; 40 41 import org.openstreetmap.josm.data.osm.Node; … … 698 699 } 699 700 for (Node n : affectedNodes) { 700 if (n.getCoor().isOutSideWorld()) { 701 LatLon ll = n.getCoor(); 702 if (ll != null && ll.isOutSideWorld()) { 701 703 // Revert move 702 704 ((MoveCommand) c).resetToCheckpoint(); -
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; -
trunk/src/org/openstreetmap/josm/data/osm/AbstractPrimitive.java
r6140 r6215 267 267 throw new IllegalStateException(tr("Cannot assign a changesetId > 0 to a new primitive. Value of changesetId is {0}", changesetId)); 268 268 269 int old = this.changesetId;270 269 this.changesetId = changesetId; 271 270 } … … 716 715 * @param key the key forming the tag. 717 716 * @param values one or many values forming the tag. 718 * @return true if fprimitive contains a tag consisting of {@code key} and any of {@code values}.717 * @return true if primitive contains a tag consisting of {@code key} and any of {@code values}. 719 718 */ 720 719 public boolean hasTag(String key, String... values) {
Note:
See TracChangeset
for help on using the changeset viewer.