fix: Diffing view not highlighting correctly with a custom base address
This commit is contained in:
parent
3b5efb37e9
commit
978558649e
@ -111,7 +111,7 @@ namespace hex::plugin::builtin {
|
|||||||
auto &otherProvider = providers[otherId];
|
auto &otherProvider = providers[otherId];
|
||||||
|
|
||||||
// Handle the case where one provider is larger than the other one
|
// Handle the case where one provider is larger than the other one
|
||||||
if (address > otherProvider->getActualSize()) {
|
if ((address - otherProvider->getBaseAddress()) > otherProvider->getActualSize()) {
|
||||||
if (otherIndex == 1)
|
if (otherIndex == 1)
|
||||||
return getDiffColor(ImGuiExt::GetCustomColorU32(ImGuiCustomCol_DiffAdded));
|
return getDiffColor(ImGuiExt::GetCustomColorU32(ImGuiCustomCol_DiffAdded));
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user