Changeset 6078 in josm for trunk/src/org
- Timestamp:
- 2013-07-20T22:26:27+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPresetSelector.java
r6074 r6078 197 197 } 198 198 199 /** 200 * Constructs a new {@code TaggingPresetSelector}. 201 */ 199 202 public TaggingPresetSelector() { 200 203 super(new BorderLayout()); … … 430 433 */ 431 434 public TaggingPreset getSelectedPreset() { 435 List<PresetClassification> presets = lsResultModel.getPresets(); 436 if (presets.isEmpty()) return null; 432 437 int idx = lsResult.getSelectedIndex(); 433 438 if (idx == -1) { 434 439 idx = 0; 435 440 } 436 TaggingPreset preset = lsResultModel.getPresets().get(idx).preset;441 TaggingPreset preset = presets.get(idx).preset; 437 442 for (PresetClassification pc: classifications) { 438 443 if (pc.preset == preset) {
Note:
See TracChangeset
for help on using the changeset viewer.