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
@@ -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;
}