mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
* Fixed a bug in table sort that could produce a cast error if tables are sorted by skill level.
This commit is contained in:
parent
d238355a13
commit
ae89cef011
1 changed files with 7 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue