IdeDebugger: fix expanding array. Take low-bound into account. Issue #41073

This commit is contained in:
Martin 2024-08-12 15:27:58 +02:00
parent 4150057274
commit 6348f103a4

View File

@ -4541,7 +4541,7 @@ begin
TryStrToInt64(Watch.DisplayName, i) and
(i >= ASrcValue.FResultData.LowBound) and (i < ASrcValue.FResultData.Count)
then begin
ASrcValue.FResultData.SetSelectedIndex(i);
ASrcValue.FResultData.SetSelectedIndex(i-ASrcValue.FResultData.LowBound);
// TODO: mark this as a copy / or don't store it, then no copy is needed
FResultData := ASrcValue.FResultData.SelectedEntry.CreateCopy;
exit;