Fixed: Hex View - incorrect table height when switching tags

This commit is contained in:
Jindra Petřík
2025-08-25 20:00:23 +02:00
parent 83311ed679
commit d7665cf093
3 changed files with 6 additions and 1 deletions
@@ -200,7 +200,10 @@ public class HexView extends JTable {
int row = table.rowAtPoint(point);
int idx = getIdxByColAndRow(row, col);
mouseOverIdx = idx;
getModel().fireTableCellUpdated(row, col);
if (row > -1 && col > -1) {
getModel().fireTableCellUpdated(row, col);
}
if (listener != null) {
listener.byteMouseMoved(idx, idx == -1 ? 0 : getModel().getData()[idx]);
@@ -83,6 +83,7 @@ public class HexViewTableModel extends AbstractTableModel {
public void setData(byte[] data) {
this.data = data;
fireTableDataChanged();
}
@Override