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

View File

@@ -82,6 +82,7 @@ All notable changes to this project will be documented in this file.
- [#2519] AS1/2 avoid multi-level loops in cases where possible
- [#2522] Hex view - reseting view when mouse over panel bottom
- [#2519] AS1/2 direct editation - generating too large ConstantPool
- Hex View - incorrect table height when switching tags
### Changed
- Icon of "Deobfuscation options" menu from pile of pills to medkit

View File

@@ -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]);

View File

@@ -83,6 +83,7 @@ public class HexViewTableModel extends AbstractTableModel {
public void setData(byte[] data) {
this.data = data;
fireTableDataChanged();
}
@Override