* Fixed a bug in table sort that could produce a cast error if tables are sorted by skill level.

This commit is contained in:
LevelX2 2015-05-22 21:25:59 +02:00
parent d238355a13
commit ae89cef011

View file

@ -1384,9 +1384,12 @@ class TableTableModel extends AbstractTableModel {
@Override @Override
public Class getColumnClass(int columnIndex){ public Class getColumnClass(int columnIndex){
if (columnIndex == 0) { switch (columnIndex) {
case COLUMN_ICON:
return Icon.class; return Icon.class;
} else { case COLUMN_SKILL:
return SkillLevel.class;
default:
return String.class; return String.class;
} }
} }