mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 13:19:20 +02:00
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:
parent
01ec95d8d2
commit
1a43728757
@ -462,7 +462,7 @@ end;
|
|||||||
function TCustomChartSeries.GetGraphBounds: TDoubleRect;
|
function TCustomChartSeries.GetGraphBounds: TDoubleRect;
|
||||||
begin
|
begin
|
||||||
Result := EmptyExtent;
|
Result := EmptyExtent;
|
||||||
GetBounds(Result);
|
if Active then GetBounds(Result);
|
||||||
with Result do begin
|
with Result do begin
|
||||||
UpdateBoundsByAxisRange(FChart.AxisList, AxisIndexX, a.X, b.X);
|
UpdateBoundsByAxisRange(FChart.AxisList, AxisIndexX, a.X, b.X);
|
||||||
UpdateBoundsByAxisRange(FChart.AxisList, AxisIndexY, a.Y, b.Y);
|
UpdateBoundsByAxisRange(FChart.AxisList, AxisIndexY, a.Y, b.Y);
|
||||||
|
@ -1174,7 +1174,6 @@ begin
|
|||||||
|
|
||||||
Result := EmptyExtent;
|
Result := EmptyExtent;
|
||||||
for s in Series do begin
|
for s in Series do begin
|
||||||
if not s.Active then continue;
|
|
||||||
try
|
try
|
||||||
JoinBounds(s.GetGraphBounds);
|
JoinBounds(s.GetGraphBounds);
|
||||||
except
|
except
|
||||||
|
Loading…
Reference in New Issue
Block a user