TAChart: Fix out-of-range error when displaying series with only NaN values

git-svn-id: trunk@41791 -
This commit is contained in:
ask 2013-06-22 10:38:07 +00:00
parent 290e10465d
commit 995a2f9aab

View File

@ -1163,7 +1163,7 @@ var
begin
FindExtentInterval(AExtent, AFilterByExtent);
SetLength(FGraphPoints, FUpBound - FLoBound + 1);
SetLength(FGraphPoints, Max(FUpBound - FLoBound + 1, 0));
if (AxisIndexX < 0) and (AxisIndexY < 0) then
// Optimization: bypass transformations in the default case.
for i := FLoBound to FUpBound do