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