Changeset 7811 in josm
- Timestamp:
- 2014-12-16T17:01:17+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPresetItems.java
r7741 r7811 1397 1397 int j = 0; 1398 1398 for (int i = 0; i < lm.getSize(); i++) { 1399 if (parts.contains((lm.getElementAt(i).value))) { 1399 final String value = lm.getElementAt(i).value; 1400 if (parts.contains(value)) { 1400 1401 intParts[j++]=i; 1402 parts.remove(value); 1401 1403 } 1402 1404 } … … 1405 1407 // value with our presets. if not, cop out; we will not offer 1406 1408 // a selection list that threatens to ruin the value. 1407 setEnabled( Utils.join(delimiter, parts).equals(getSelectedItem()));1409 setEnabled(parts.isEmpty()); 1408 1410 } 1409 1411 }
Note:
See TracChangeset
for help on using the changeset viewer.