mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-101805 Data Source Properties / Advanced: Quick Search in sorted table works incorrectly
This commit is contained in:
@@ -87,9 +87,9 @@ public class TableSpeedSearch extends SpeedSearchBase<JTable> {
|
||||
protected String getElementText(Object element) {
|
||||
final int index = ((Integer)element).intValue();
|
||||
final TableModel model = myComponent.getModel();
|
||||
int row = index / model.getColumnCount();
|
||||
int col = index % model.getColumnCount();
|
||||
final Object value = model.getValueAt(row, col);
|
||||
int row = myComponent.convertRowIndexToModel(index / model.getColumnCount());
|
||||
int col = myComponent.convertColumnIndexToModel(index % model.getColumnCount());
|
||||
Object value = model.getValueAt(row, col);
|
||||
return myToStringConvertor.fun(value, new Cell(row, col));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user