mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 19:30:46 +00:00
Fixed: The hex view does not display bytes if there are too few of them
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user