Changeset 700 in josm
- Timestamp:
- 2008-07-10T15:56:15+02:00 (17 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPreset.java
r694 r700 273 273 } 274 274 @Override public void addCommands(Collection<OsmPrimitive> sel, List<Command> cmds) { 275 String display = combo.getSelectedItem().toString(); 275 Object obj = combo.getSelectedItem(); 276 String display = (obj == null) ? null : obj.toString(); 276 277 String value = null; 277 278 if(display == null && combo.isEditable()) … … 287 288 value = display; 288 289 } 290 else 291 value = ""; 289 292 290 293 // no change if same as before
Note:
See TracChangeset
for help on using the changeset viewer.