Changeset 36134 in osm for applications/editors/josm/plugins/buildings_tools
- Timestamp:
- 2023-09-07T18:20:01+02:00 (2 years ago)
- Location:
- applications/editors/josm/plugins/buildings_tools/src/org/openstreetmap/josm/plugins/buildings_tools
- Files:
-
- 2 edited
-
Building.java (modified) (1 diff)
-
MergeAddrPointsAction.java (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/buildings_tools/src/org/openstreetmap/josm/plugins/buildings_tools/Building.java
r36132 r36134 487 487 addressCmds.add(new ChangeMembersCommand(r, members)); 488 488 } 489 addressCmds.add(DeleteCommand.delete(Collections.singleton(addrNode))); 489 final Command deleteCommand = DeleteCommand.delete(Collections.singleton(addrNode)); 490 if (deleteCommand != null) { 491 addressCmds.add(deleteCommand); 492 } 490 493 if (cmdList == null) { 491 494 Command c = new SequenceCommand(tr("Add address for building"), addressCmds); -
applications/editors/josm/plugins/buildings_tools/src/org/openstreetmap/josm/plugins/buildings_tools/MergeAddrPointsAction.java
r35669 r36134 38 38 import org.openstreetmap.josm.tools.Shortcut; 39 39 40 /** 41 * Merge address points with a building 42 */ 40 43 public class MergeAddrPointsAction extends JosmAction { 41 44 45 /** 46 * Merge the address point with the building 47 */ 42 48 public MergeAddrPointsAction() { 43 49 super(tr("Merge address points"), "mergeaddr", … … 173 179 } 174 180 if (!replaced.isEmpty()) { 175 cmds.add(new DeleteCommand(replaced.stream().map(p -> p.a).collect(Collectors.toList()))); 181 final Command deleteCommand = DeleteCommand.delete(replaced.stream().map(p -> p.a).collect(Collectors.toList())); 182 if (deleteCommand != null) { 183 cmds.add(deleteCommand); 184 } 176 185 } 177 186
Note:
See TracChangeset
for help on using the changeset viewer.
