mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 12:30:36 +02:00
IdeDebugger: fix expanding array. Take low-bound into account. Issue #41073
This commit is contained in:
parent
4150057274
commit
6348f103a4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user