Changeset 5990 in josm


Ignore:
Timestamp:
2013-06-05T00:52:58+02:00 (12 years ago)
Author:
Don-vip
Message:

fix #7863 - ConcurrentModificationException while merging layers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/MapView.java

    r5979 r5990  
    678678     */
    679679    public Collection<Layer> getAllLayers() {
    680         return Collections.unmodifiableCollection(layers);
     680        return Collections.unmodifiableCollection(new ArrayList<Layer>(layers));
    681681    }
    682682
     
    685685     */
    686686    public List<Layer> getAllLayersAsList() {
    687         return Collections.unmodifiableList(layers);
     687        return Collections.unmodifiableList(new ArrayList<Layer>(layers));
    688688    }
    689689
Note: See TracChangeset for help on using the changeset viewer.