TAChart: Ignore infinite series extent when calculating graph bounds

git-svn-id: trunk@39071 -
This commit is contained in:
ask 2012-10-13 16:09:14 +00:00
parent a41feb139a
commit 203ffb01d9

View File

@ -693,9 +693,14 @@ begin
end;
procedure TChartSeries.GetBounds(var ABounds: TDoubleRect);
var
i: Integer;
begin
if not Active or (Count = 0) then exit;
ABounds := Extent;
with Extent do
for i := Low(coords) to High(coords) do
if not IsInfinite(coords[i]) then
ABounds.coords[i] := coords[i];
end;
function TChartSeries.GetColor(AIndex: Integer): TColor;