diff --git a/components/tachart/tacustomseries.pas b/components/tachart/tacustomseries.pas index 0e3e31ac48..0229ba03c0 100644 --- a/components/tachart/tacustomseries.pas +++ b/components/tachart/tacustomseries.pas @@ -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); diff --git a/components/tachart/tagraph.pas b/components/tachart/tagraph.pas index 963ea0b939..72619ce194 100644 --- a/components/tachart/tagraph.pas +++ b/components/tachart/tagraph.pas @@ -1174,7 +1174,6 @@ begin Result := EmptyExtent; for s in Series do begin - if not s.Active then continue; try JoinBounds(s.GetGraphBounds); except