mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-22 02:45:34 +00:00
exception fixed in hexview
This commit is contained in:
@@ -228,6 +228,9 @@ public class HexView extends JTable {
|
||||
|
||||
private int getIdxByColAndRow(int row, int col) {
|
||||
int idx = -1;
|
||||
if (row < 0 || col < 0) {
|
||||
return -1;
|
||||
}
|
||||
if (col > 0 && col != bytesInRow + 1) {
|
||||
idx = row * bytesInRow + ((col > bytesInRow + 1) ? (col - bytesInRow - 2) : (col - 1));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user