Changeset 35574 in osm for applications/editors/josm/plugins/buildings_tools
- Timestamp:
- 2020-10-10T12:12:51+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/buildings_tools/src/org/openstreetmap/josm/plugins/buildings_tools/Building.java
r34968 r35574 16 16 import java.util.LinkedList; 17 17 import java.util.List; 18 import java.util.Map.Entry;19 18 import java.util.Set; 20 19 … … 24 23 import org.openstreetmap.josm.command.AddCommand; 25 24 import org.openstreetmap.josm.command.ChangeCommand; 25 import org.openstreetmap.josm.command.ChangeNodesCommand; 26 26 import org.openstreetmap.josm.command.Command; 27 27 import org.openstreetmap.josm.command.DeleteCommand; … … 427 427 snapToWay(otherNodes, Arrays.asList(nodes)); 428 428 if (otherNodes.size() != other.getNodesCount()) { 429 Way newWay = new Way(other); 430 newWay.setNodes(otherNodes); 431 cmds.add(new ChangeCommand(other, newWay)); 429 cmds.add(new ChangeNodesCommand(other, otherNodes)); 432 430 } 433 431 } … … 471 469 if (addrNode != null) { 472 470 Collection<Command> addressCmds = cmdList != null ? cmdList : new LinkedList<>(); 473 for (Entry<String, String> entry : addrNode.getKeys().entrySet()) { 474 w.put(entry.getKey(), entry.getValue()); 475 } 471 addrNode.getKeys().forEach(w::put); 476 472 for (OsmPrimitive p : addrNode.getReferrers()) { 477 473 Relation r = (Relation) p;
Note:
See TracChangeset
for help on using the changeset viewer.