exception fixed in hexview

This commit is contained in:
honfika@gmail.com
2014-11-11 00:05:51 +01:00
parent 5a8c3bcca8
commit 50ccddb4e6

View File

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