mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 00:59:31 +02:00
TAChart: Fix out-of-range error when displaying series with only NaN values
git-svn-id: trunk@41791 -
This commit is contained in:
parent
290e10465d
commit
995a2f9aab
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user