TAChart: Fix scaling of axis with fixed range when associated series is hidden.

git-svn-id: branches/fixes_2_0@60196 -
This commit is contained in:
mattias 2019-01-24 09:49:15 +00:00
parent 01ec95d8d2
commit 1a43728757
2 changed files with 1 additions and 2 deletions

View File

@ -462,7 +462,7 @@ end;
function TCustomChartSeries.GetGraphBounds: TDoubleRect;
begin
Result := EmptyExtent;
GetBounds(Result);
if Active then GetBounds(Result);
with Result do begin
UpdateBoundsByAxisRange(FChart.AxisList, AxisIndexX, a.X, b.X);
UpdateBoundsByAxisRange(FChart.AxisList, AxisIndexY, a.Y, b.Y);

View File

@ -1174,7 +1174,6 @@ begin
Result := EmptyExtent;
for s in Series do begin
if not s.Active then continue;
try
JoinBounds(s.GetGraphBounds);
except