Fixed: The hex view does not display bytes if there are too few of them

This commit is contained in:
Jindra Petřík
2025-07-26 19:39:10 +02:00
parent 9ae9c6bc72
commit 45c03c9fc2
2 changed files with 2 additions and 4 deletions

View File

@@ -48,6 +48,7 @@ All notable changes to this project will be documented in this file.
- AS direct editation/highlighter §§pop and §§dup can have getmember or call
- [#1295], [#116] AS3 dynamic construction via MultinameL
- ABC cleaner not properly fixing namespace sets
- The hex view does not display bytes if there are too few of them
### Changed
- Icon of "Deobfuscation options" menu from pile of pills to medkit

View File

@@ -37,10 +37,7 @@ public class HexViewTableModel extends AbstractTableModel {
return 0;
}
int byteCount = data.length;
int rowCount = byteCount / bytesInRow;
if (byteCount % bytesInRow != 0) {
rowCount++;
}
int rowCount = (int) Math.ceil(byteCount / (double) bytesInRow);
return rowCount;
}