1
0
mirror of synced 2025-02-17 18:59:21 +01:00

ui: Fixed hex editor highlighting sometimes having gaps

This commit is contained in:
WerWolv 2022-10-11 15:06:33 +02:00
parent cb9458dab4
commit 16eb7b3dbd

View File

@ -863,7 +863,8 @@ namespace hex::plugin::builtin {
if (isColumnSeparatorColumn(x + 1, columnCount)) {
auto separatorAddress = x + y * columnCount;
if ((this->isSelectionValid() && this->getSelection().overlaps({ separatorAddress, 1 }) && this->getSelection().getEndAddress() != separatorAddress) || cellColors[x] == cellColors[x + 1])
auto [nextForegroundColor, nextBackgroundColor] = cellColors[x + 1];
if ((this->isSelectionValid() && this->getSelection().overlaps({ separatorAddress, 1 }) && this->getSelection().getEndAddress() != separatorAddress) || backgroundColor == nextBackgroundColor)
cellSize.x += SeparatorColumWidth + 1;
}