Changeset 2515 in josm
- Timestamp:
- 2009-11-25T17:58:39+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/DataSet.java
r2512 r2515 248 248 * dataset. (However, the selection does only change in the active layer) 249 249 */ 250 public static Collection<SelectionChangedListener> selListeners = new LinkedList<SelectionChangedListener>(); 250 public static Collection<SelectionChangedListener> selListeners = 251 Collections.synchronizedList(new LinkedList<SelectionChangedListener>()); 251 252 252 253 /** … … 257 258 */ 258 259 private static void notifySelectionChangeListeners(Collection<? extends OsmPrimitive> sel) { 259 for (SelectionChangedListener l : selListeners) { 260 l.selectionChanged(sel); 260 synchronized (selListeners) { 261 for (SelectionChangedListener l : selListeners) { 262 l.selectionChanged(sel); 263 } 261 264 } 262 265 }
Note:
See TracChangeset
for help on using the changeset viewer.