Changeset 12920 in josm for trunk/src/org/openstreetmap/josm/gui/datatransfer/importers/PrimitiveTagTransferPaster.java
- Timestamp:
- 2017-10-03T21:31:04+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/datatransfer/importers/PrimitiveTagTransferPaster.java
r12769 r12920 8 8 import java.util.Collection; 9 9 import java.util.EnumMap; 10 import java.util.HashMap; 10 11 import java.util.List; 11 12 import java.util.Map; … … 50 51 List<Command> commands = new ArrayList<>(); 51 52 for (Tag tag : tagPaster.execute()) { 52 ChangePropertyCommand cmd = new ChangePropertyCommand(selection, tag.getKey(), "".equals(tag.getValue()) ? null : tag.getValue()); 53 Map<String, String> tags = new HashMap<>(1); 54 tags.put(tag.getKey(), "".equals(tag.getValue()) ? null : tag.getValue()); 55 ChangePropertyCommand cmd = new ChangePropertyCommand(Main.main.getEditDataSet(), selection, tags); 53 56 if (cmd.getObjectsNumber() > 0) { 54 57 commands.add(cmd);
Note:
See TracChangeset
for help on using the changeset viewer.