* 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,10 +1384,13 @@ class TableTableModel extends AbstractTableModel {
@Override
public Class getColumnClass(int columnIndex){
if (columnIndex == 0) {
return Icon.class;
} else {
return String.class;
switch (columnIndex) {
case COLUMN_ICON:
return Icon.class;
case COLUMN_SKILL:
return SkillLevel.class;
default:
return String.class;
}
}