- Timestamp:
- 2012-06-25T22:59:59+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java
r5298 r5303 1480 1480 @Override 1481 1481 public Object getValueAt(int row, int col) { 1482 switch (col) { 1483 case 0: return getLayers().get(row) == getActiveLayer(); 1484 case 1: return getLayers().get(row); 1485 case 2: return getLayers().get(row); 1486 default: throw new RuntimeException(); 1487 } 1482 if (row >= 0 && row < getLayers().size()) { 1483 switch (col) { 1484 case 0: return getLayers().get(row) == getActiveLayer(); 1485 case 1: return getLayers().get(row); 1486 case 2: return getLayers().get(row); 1487 default: throw new RuntimeException(); 1488 } 1489 } 1490 return null; 1488 1491 } 1489 1492
Note:
See TracChangeset
for help on using the changeset viewer.