mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-02 15:03:43 +02:00
TAChart: Fixed compilation on FPC 2.3.1
git-svn-id: trunk@19170 -
This commit is contained in:
parent
53478c37f8
commit
a95dcafbfb
@ -50,7 +50,13 @@ type
|
||||
end;
|
||||
|
||||
TDoubleRect = record
|
||||
a, b: TDoublePoint;
|
||||
case Integer of
|
||||
0: (
|
||||
a, b: TDoublePoint;
|
||||
);
|
||||
1: (
|
||||
coords: array [1..4] of Double;
|
||||
);
|
||||
end;
|
||||
|
||||
TPointDistFunc = function (const A, B: TPoint): Integer;
|
||||
|
@ -776,10 +776,8 @@ begin
|
||||
end;
|
||||
|
||||
function TChartExtent.GetBorder(AIndex: Integer): Double;
|
||||
var
|
||||
a: array [1..4] of Double absolute FExtent;
|
||||
begin
|
||||
Result := a[AIndex];
|
||||
Result := Extent.coords[AIndex];
|
||||
end;
|
||||
|
||||
procedure TChartExtent.SetAuto(AIndex: Integer; AValue: Boolean);
|
||||
@ -789,10 +787,8 @@ begin
|
||||
end;
|
||||
|
||||
procedure TChartExtent.SetBorder(AIndex: Integer; const AValue: Double);
|
||||
var
|
||||
a: array [1..4] of Double absolute FExtent;
|
||||
begin
|
||||
a[AIndex] := AValue;
|
||||
Extent.coords[AIndex] := AValue;
|
||||
StyleChanged(Self);
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user