Changeset 11365 in josm for trunk/src/org/openstreetmap/josm/gui/dialogs/SelectionListDialog.java
- Timestamp:
- 2016-12-07T23:47:56+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/SelectionListDialog.java
r11177 r11365 578 578 */ 579 579 public synchronized void setSelected(Collection<OsmPrimitive> sel) { 580 selectionModel.setValueIsAdjusting(true); 580 581 selectionModel.clearSelection(); 581 if (sel == null) return; 582 for (OsmPrimitive p: sel) { 583 int i = selection.indexOf(p); 584 if (i >= 0) { 585 selectionModel.addSelectionInterval(i, i); 586 } 587 } 582 if (sel != null) { 583 for (OsmPrimitive p: sel) { 584 int i = selection.indexOf(p); 585 if (i >= 0) { 586 selectionModel.addSelectionInterval(i, i); 587 } 588 } 589 } 590 selectionModel.setValueIsAdjusting(false); 588 591 } 589 592
Note:
See TracChangeset
for help on using the changeset viewer.