mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-11 15:36:31 +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;
|
||||
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);
|
||||
|
@ -1174,7 +1174,6 @@ begin
|
||||
|
||||
Result := EmptyExtent;
|
||||
for s in Series do begin
|
||||
if not s.Active then continue;
|
||||
try
|
||||
JoinBounds(s.GetGraphBounds);
|
||||
except
|
||||
|
Loading…
Reference in New Issue
Block a user