TAChart: Fix AV when calling ValuesInRange on empty source

git-svn-id: trunk@31663 -
This commit is contained in:
ask 2011-07-10 15:19:19 +00:00
parent 9e2a877d3d
commit 03f4033c49

View File

@ -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