mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-18 01:09:35 +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,10 +174,14 @@ procedure TCustomChartSeries.GetGraphBounds(var ABounds: TDoubleRect);
|
||||
begin
|
||||
GetBounds(ABounds);
|
||||
with ABounds do begin
|
||||
a.X := AxisToGraphX(a.X);
|
||||
a.Y := AxisToGraphY(a.Y);
|
||||
b.X := AxisToGraphX(b.X);
|
||||
b.Y := AxisToGraphY(b.Y);
|
||||
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);
|
||||
Exchange(b.X, b.Y);
|
||||
|
Loading…
Reference in New Issue
Block a user