diff --git a/CHANGELOG.md b/CHANGELOG.md index 0963b43e5..64ac90036 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/com/jpexs/decompiler/flash/gui/hexview/HexViewTableModel.java b/src/com/jpexs/decompiler/flash/gui/hexview/HexViewTableModel.java index d25050d77..674485b47 100644 --- a/src/com/jpexs/decompiler/flash/gui/hexview/HexViewTableModel.java +++ b/src/com/jpexs/decompiler/flash/gui/hexview/HexViewTableModel.java @@ -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; }