Ticket #15693: no_decode.patch
File no_decode.patch, 1.5 KB (added by , 6 years ago) |
---|
-
src/org/openstreetmap/josm/io/remotecontrol/AddTagsDialog.java
35 35 import org.openstreetmap.josm.gui.util.GuiHelper; 36 36 import org.openstreetmap.josm.gui.util.TableHelper; 37 37 import org.openstreetmap.josm.tools.GBC; 38 import org.openstreetmap.josm.tools.Utils;39 38 40 39 /** 41 40 * Dialog to add tags as part of the remotecontrol. … … 270 269 271 270 /** 272 271 * parse addtags parameters Example URL (part): 273 * addtags=wikipedia:de %3DResidenzschloss Dresden|name:en%3DDresden Castle272 * addtags=wikipedia:de=Residenzschloss Dresden|name:en=Dresden Castle 274 273 * @param args request arguments 275 274 * @param sender is a string for skipping confirmations. Use empty string for always confirmed adding. 276 275 * @param primitives OSM objects that will be modified … … 279 278 if (args.containsKey("addtags")) { 280 279 GuiHelper.executeByMainWorkerInEDT(() -> { 281 280 Set<String> tagSet = new HashSet<>(); 282 for (String tag1 : Utils.decodeUrl(args.get("addtags")).split("\\|")) {281 for (String tag1 : args.get("addtags").split("\\|")) { 283 282 if (!tag1.trim().isEmpty() && tag1.contains("=")) { 284 283 tagSet.add(tag1.trim()); 285 284 }