mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-05 04:38:10 +08:00
Datasource#excludeItem causes IllegalArgumentException in DesktopAbstractTable#repaint #PL-4853
This commit is contained in:
parent
c5b701d94c
commit
b4526ddcdf
@ -769,6 +769,9 @@ public abstract class DesktopAbstractTable<C extends JXTable>
|
||||
if (focusManager != null && scrollRowIndex >= 0) {
|
||||
focusManager.scrollToSelectedRow(scrollRowIndex);
|
||||
}
|
||||
|
||||
// reassign identifiers for auto created columns
|
||||
setColumnIdentifiers();
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@ -1873,12 +1876,14 @@ public abstract class DesktopAbstractTable<C extends JXTable>
|
||||
TableColumn tableColumn = getColumn(column);
|
||||
if (tableColumn != null) {
|
||||
DesktopTableCellEditor cellEditor = (DesktopTableCellEditor) tableColumn.getCellEditor();
|
||||
if (cellEditor != null) {
|
||||
boolean inline = cellEditor.isInline();
|
||||
if (!inline) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user