mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-06 12:18:17 +02:00
TAChart: Ignore infinite series extent when calculating graph bounds
git-svn-id: trunk@39071 -
This commit is contained in:
parent
a41feb139a
commit
203ffb01d9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user