Changeset 13429 in josm
- Timestamp:
- 2018-02-17T15:16:02+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/imagery/WMTSTileSource.java
r13388 r13429 257 257 }); 258 258 this.list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); 259 this.list.setAutoCreateRowSorter(true); 259 260 this.list.setRowSelectionAllowed(true); 260 261 this.list.setColumnSelectionAllowed(false); … … 269 270 return null; //nothing selected 270 271 } 271 Layer selectedLayer = layers.get( index).getValue().get(0);272 Layer selectedLayer = layers.get(list.convertRowIndexToModel(index)).getValue().get(0); 272 273 return new WMTSDefaultLayer(selectedLayer.identifier, selectedLayer.tileMatrixSet.identifier); 273 274 }
Note:
See TracChangeset
for help on using the changeset viewer.