Changeset 5216 in josm for trunk/src/org
- Timestamp:
- 2012-05-06T18:08:21+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/MergeNodesAction.java
r5132 r5216 152 152 * @return the selected target node 153 153 */ 154 public static Node selectTargetNode( List<Node> candidates) {154 public static Node selectTargetNode(Collection<Node> candidates) { 155 155 Node targetNode = null; 156 156 Node lastNode = null; … … 241 241 242 242 public static Command mergeNodes(OsmDataLayer layer, Collection<Node> nodes, Node targetNode) { 243 return mergeNodes(layer, nodes, targetNode, targetNode); 243 if (nodes == null) { 244 return null; 245 } 246 Set<Node> allNodes = new HashSet<Node>(nodes); 247 allNodes.add(targetNode); 248 return mergeNodes(layer, nodes, selectTargetNode(allNodes), targetNode); 244 249 } 245 250
Note:
See TracChangeset
for help on using the changeset viewer.