- Timestamp:
- 2010-03-18T16:47:23+01:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/MergeNodesAction.java
r3134 r3142 22 22 import org.openstreetmap.josm.Main; 23 23 import org.openstreetmap.josm.command.ChangeCommand; 24 import org.openstreetmap.josm.command.ChangeNodesCommand; 24 25 import org.openstreetmap.josm.command.Command; 25 26 import org.openstreetmap.josm.command.DeleteCommand; … … 130 131 * @return a list of commands; null, if the ways could not be fixed 131 132 */ 132 protected static List<Command> fixParentWays(Collection< OsmPrimitive> nodesToDelete, Node targetNode) {133 protected static List<Command> fixParentWays(Collection<Node> nodesToDelete, Node targetNode) { 133 134 List<Command> cmds = new ArrayList<Command>(); 134 135 Set<Way> waysToDelete = new HashSet<Way>(); … … 180 181 waysToDelete.add(w); 181 182 } else { 182 Way newWay = new Way(w); 183 newWay.setNodes(newNodes); 184 cmds.add(new ChangeCommand(w, newWay)); 183 cmds.add(new ChangeNodesCommand(w, newNodes)); 185 184 } 186 185 } … … 240 239 // the nodes we will have to delete 241 240 // 242 Collection< OsmPrimitive> nodesToDelete = new HashSet<OsmPrimitive>(nodes);241 Collection<Node> nodesToDelete = new HashSet<Node>(nodes); 243 242 nodesToDelete.remove(targetNode); 244 243
Note:
See TracChangeset
for help on using the changeset viewer.