From 978558649e3a83d975119f8c3464d71512e61641 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sun, 17 Dec 2023 23:34:19 +0100 Subject: [PATCH] fix: Diffing view not highlighting correctly with a custom base address --- plugins/builtin/source/content/views/view_diff.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/builtin/source/content/views/view_diff.cpp b/plugins/builtin/source/content/views/view_diff.cpp index 18eceff77..c144e7f1f 100644 --- a/plugins/builtin/source/content/views/view_diff.cpp +++ b/plugins/builtin/source/content/views/view_diff.cpp @@ -111,7 +111,7 @@ namespace hex::plugin::builtin { auto &otherProvider = providers[otherId]; // 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) return getDiffColor(ImGuiExt::GetCustomColorU32(ImGuiCustomCol_DiffAdded)); else