Changeset 12769 in josm for trunk/src/org/openstreetmap/josm/gui
- Timestamp:
- 2017-09-07T21:01:54+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/datatransfer/importers/PrimitiveTagTransferPaster.java
r12720 r12769 27 27 28 28 /** 29 * This class helps pasting tags f orm other primitives. It handles resolving conflicts.29 * This class helps pasting tags from other primitives. It handles resolving conflicts. 30 30 * @author Michael Zangl 31 31 * @since 10737 … … 50 50 List<Command> commands = new ArrayList<>(); 51 51 for (Tag tag : tagPaster.execute()) { 52 commands.add(new ChangePropertyCommand(selection, tag.getKey(), "".equals(tag.getValue()) ? null : tag.getValue())); 52 ChangePropertyCommand cmd = new ChangePropertyCommand(selection, tag.getKey(), "".equals(tag.getValue()) ? null : tag.getValue()); 53 if (cmd.getObjectsNumber() > 0) { 54 commands.add(cmd); 55 } 53 56 } 54 57 commitCommands(selection, commands);
Note: See TracChangeset
for help on using the changeset viewer.