mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 07:56:11 +02:00
TAChart: Fix AV when calling ValuesInRange on empty source
git-svn-id: trunk@31663 -
This commit is contained in:
parent
9e2a877d3d
commit
03f4033c49
@ -428,8 +428,8 @@ var
|
||||
pv, v: Double;
|
||||
begin
|
||||
cnt := Length(AValues);
|
||||
SetLength(AValues, cnt + Count);
|
||||
SetLength(ATexts, cnt + Count);
|
||||
SetLength(AValues, cnt + Count + 2);
|
||||
SetLength(ATexts, cnt + Count + 2);
|
||||
v := 0;
|
||||
li := 0;
|
||||
for i := 0 to Count - 1 do begin
|
||||
|
Loading…
Reference in New Issue
Block a user