mirror of https://gitlab.com/basile.b/dexed.git
#97, fix possible range error in variables list
This commit is contained in:
parent
e79eeaecb1
commit
3998474470
|
@ -2055,7 +2055,7 @@ begin
|
|||
with lstVariables.Items[lstVariables.Items.Count-1] do
|
||||
SubItems.Add(val.AsString);
|
||||
end;
|
||||
if (j <> -1) and (j <= lstVariables.Items.Count) then
|
||||
if (j <> -1) and (j < lstVariables.Items.Count) then
|
||||
lstVariables.ItemIndex := j;
|
||||
lstVariables.EndUpdate;
|
||||
end;
|
||||
|
|
Loading…
Reference in New Issue