From db9cddf12ce4ba61bab7a9ae590bb3d293352e51 Mon Sep 17 00:00:00 2001 From: Nav Date: Sun, 12 Mar 2023 15:00:15 +0000 Subject: [PATCH] Fixed off-by-one bug in address item container --- .../HexViewerWidget/ByteAddressContainer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/ByteAddressContainer.cpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/ByteAddressContainer.cpp index 3faf2bee..6d39c6a9 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/ByteAddressContainer.cpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/ByteAddressContainer.cpp @@ -13,7 +13,7 @@ namespace Bloom::Widgets decltype(this->addressItems)::size_type rowIndex = 0; for (const auto& byteItem : firstByteItemByLine) { - auto addressItem = addressItemCount > 0 && rowIndex < addressItemCount - 1 + auto addressItem = addressItemCount > 0 && rowIndex <= addressItemCount - 1 ? this->addressItems[rowIndex] : *(this->addressItems.insert( this->addressItems.end(),