mirror of https://github.com/WerWolv/ImHex.git
fix: Crash when scrolling to the end of a file that is multiples of 8 bytes long
This commit is contained in:
parent
f53d7fc9f3
commit
2c167d6d27
|
@ -938,7 +938,7 @@ namespace hex::plugin::builtin {
|
|||
|
||||
auto [foregroundColor, backgroundColor] = cellColors[x];
|
||||
|
||||
if (isColumnSeparatorColumn(x + 1, columnCount)) {
|
||||
if (isColumnSeparatorColumn(x + 1, columnCount) && cellColors.size() > x + 1) {
|
||||
auto separatorAddress = x + y * columnCount;
|
||||
auto [nextForegroundColor, nextBackgroundColor] = cellColors[x + 1];
|
||||
if ((isSelectionValid() && getSelection().overlaps({ separatorAddress, 1 }) && getSelection().getEndAddress() != separatorAddress) || backgroundColor == nextBackgroundColor)
|
||||
|
|
Loading…
Reference in New Issue