TAChart: Fix TCustomChartSource.FindBounds for the case of extremely large bounds

git-svn-id: trunk@38813 -
This commit is contained in:
ask 2012-09-24 14:58:22 +00:00
parent ea61e7b307
commit 4b17b59c53

View File

@ -693,11 +693,17 @@ begin
end
else begin
ALB := 0;
while (ALB < Count) and (NumberOr(Item[ALB]^.X, AXMin - 1) < AXMin) do
Inc(ALB);
while ALB < Count do begin
with Item[ALB]^ do
if not IsNan(X) and (X >= AXMin) then break;
ALB += 1;
end;
AUB := Count - 1;
while (AUB >= 0) and (NumberOr(Item[AUB]^.X, AXMax + 1) > AXMax) do
Dec(AUB);
while AUB >= 0 do begin
with Item[AUB]^ do
if not IsNan(X) and (X <= AXMax) then break;
AUB -= 1;
end;
end;
end;