mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 17:19:22 +02:00
TAChart: Do not apply axis transformation to unset bounds
git-svn-id: trunk@24508 -
This commit is contained in:
parent
19dd8f0be3
commit
bc0ebc593b
@ -174,9 +174,13 @@ procedure TCustomChartSeries.GetGraphBounds(var ABounds: TDoubleRect);
|
||||
begin
|
||||
GetBounds(ABounds);
|
||||
with ABounds do begin
|
||||
if not IsInfinite(a.X) then
|
||||
a.X := AxisToGraphX(a.X);
|
||||
if not IsInfinite(a.Y) then
|
||||
a.Y := AxisToGraphY(a.Y);
|
||||
if not IsInfinite(b.X) then
|
||||
b.X := AxisToGraphX(b.X);
|
||||
if not IsInfinite(b.Y) then
|
||||
b.Y := AxisToGraphY(b.Y);
|
||||
if IsRotated then begin
|
||||
Exchange(a.X, a.Y);
|
||||
|
Loading…
Reference in New Issue
Block a user