TAChart: Fixed compilation on FPC 2.3.1

git-svn-id: trunk@19170 -
This commit is contained in:
ask 2009-03-31 07:48:56 +00:00
parent 53478c37f8
commit a95dcafbfb
2 changed files with 9 additions and 7 deletions

View File

@ -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;

View File

@ -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;