- Timestamp:
- 2018-06-30T22:40:24+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/RecentTagCollection.java
r13852 r13992 13 13 import org.openstreetmap.josm.data.osm.search.SearchSetting; 14 14 import org.openstreetmap.josm.data.preferences.ListProperty; 15 import org.openstreetmap.josm.tools.Logging; 15 16 16 17 /** … … 47 48 public void loadFromPreference(ListProperty property) { 48 49 recentTags.clear(); 49 Iterator<String> it = property.get().iterator(); 50 List<String> list = property.get(); 51 Iterator<String> it = list.iterator(); 50 52 while (it.hasNext()) { 51 53 String key = it.next(); 52 String value = it.next(); 53 add(new Tag(key, value)); 54 if (it.hasNext()) { 55 String value = it.next(); 56 add(new Tag(key, value)); 57 } else { 58 Logging.error("Invalid or incomplete list property: " + list); 59 break; 60 } 54 61 } 55 62 }
Note:
See TracChangeset
for help on using the changeset viewer.