Changeset 14009 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2018-07-07T01:26:53+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java
r13984 r14009 26 26 import javax.swing.DefaultListSelectionModel; 27 27 import javax.swing.DropMode; 28 import javax.swing.Icon; 28 29 import javax.swing.ImageIcon; 29 30 import javax.swing.JCheckBox; … … 836 837 fireTableDataChanged(); 837 838 int idx = getLayers().indexOf(layer); 838 if (layerList != null) { 839 layerList.setRowHeight(idx, Math.max(16, layer.getIcon().getIconHeight())); 839 Icon icon = layer.getIcon(); 840 if (layerList != null && icon != null) { 841 layerList.setRowHeight(idx, Math.max(16, icon.getIconHeight())); 840 842 } 841 843 selectionModel.setSelectionInterval(idx, idx);
Note:
See TracChangeset
for help on using the changeset viewer.