- Timestamp:
- 2013-01-23T20:07:11+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/LoadAndZoomHandler.java
r5629 r5668 10 10 import java.util.HashSet; 11 11 import java.util.Map; 12 import java.util.Set; 12 13 import java.util.concurrent.Future; 13 14 … … 207 208 throw new RuntimeException(); 208 209 } 209 String[][] keyValue = new String[tags.length][2]; 210 for (int i = 0; i < tags.length; i++) { 211 keyValue[i] = tags[i].split("="); 212 213 keyValue[i][0] = keyValue[i][0]; 214 keyValue[i][1] = keyValue[i][1]; 215 } 216 217 new AddTagsDialog(keyValue); 210 Set<String> tagSet = new HashSet<String>(); 211 for (String tag : tags) { 212 if (!tag.trim().isEmpty() && tag.contains("=")) { 213 tagSet.add(tag.trim()); 214 } 215 } 216 if (!tagSet.isEmpty()) { 217 String[][] keyValue = new String[tagSet.size()][2]; 218 int i = 0; 219 for (String tag : tagSet) { 220 keyValue[i++] = tag.split("="); 221 } 222 223 new AddTagsDialog(keyValue); 224 } 218 225 } 219 226 });
Note:
See TracChangeset
for help on using the changeset viewer.