Changeset 724 in josm
- Timestamp:
- 2008-07-17T13:23:55+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/PropertiesDialog.java
r679 r724 129 129 return; 130 130 } 131 String msg = "<html>"+trn("This will change {0} object.", "This will change{0} objects.", sel.size(), sel.size())+"<br><br>("+tr("An empty value deletes the key.", key)+")</html>";131 String msg = "<html>"+trn("This will change up to {0} object.", "This will change up to {0} objects.", sel.size(), sel.size())+"<br><br>("+tr("An empty value deletes the key.", key)+")</html>"; 132 132 133 133 JPanel panel = new JPanel(new BorderLayout()); … … 219 219 HashMap<String, Vector<OsmPrimitive>> map=new HashMap<String, Vector<OsmPrimitive>>(); 220 220 for (OsmPrimitive osm: sel) { 221 String val=osm.keys.get(key); 222 if (map.containsKey(val)) { 223 map.get(val).add(osm); 224 } else { 225 Vector<OsmPrimitive> v = new Vector<OsmPrimitive>(); 226 v.add(osm); 227 map.put(val, v); 221 if(osm.keys != null) 222 { 223 String val=osm.keys.get(key); 224 if(val != null) 225 { 226 if (map.containsKey(val)) { 227 map.get(val).add(osm); 228 } else { 229 Vector<OsmPrimitive> v = new Vector<OsmPrimitive>(); 230 v.add(osm); 231 map.put(val, v); 232 } 233 } 228 234 } 229 235 }
Note:
See TracChangeset
for help on using the changeset viewer.