Changeset 4091 in josm
- Timestamp:
- 2011-05-20T11:39:10+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/FollowLineAction.java
r4086 r4091 12 12 import org.openstreetmap.josm.Main; 13 13 import org.openstreetmap.josm.actions.mapmode.DrawAction; 14 import org.openstreetmap.josm.command.ChangeCommand; 14 15 import org.openstreetmap.josm.data.osm.Node; 15 16 import org.openstreetmap.josm.data.osm.OsmPrimitive; … … 108 109 } 109 110 if (newPoint != null) { 111 Way newFollower = new Way(follower); 110 112 if (reversed) { 111 follower.addNode(0, newPoint);113 newFollower.addNode(0, newPoint); 112 114 } else { 113 follower.addNode(newPoint);115 newFollower.addNode(newPoint); 114 116 } 117 Main.main.undoRedo.add(new ChangeCommand(follower, newFollower)); 115 118 osmLayer.data.clearSelection(); 116 osmLayer.data.addSelected( follower);119 osmLayer.data.addSelected(newFollower); 117 120 osmLayer.data.addSelected(newPoint); 118 121 return;
Note:
See TracChangeset
for help on using the changeset viewer.