TAChart: (hopefully) fix compilation with FPC 3.3.1. Issue #40780.

This commit is contained in:
wp_xyz 2024-02-17 17:12:43 +01:00
parent 0642c65d04
commit ca58c47ab7
2 changed files with 3 additions and 3 deletions

View File

@ -279,14 +279,14 @@ begin
FSeries := nil;
if AMode in [dpmSnap, dpmLock] then begin
FindNearestPoint(APoint);
ADest.FGraphPos := FNearestGraphPoint;
ADest.GraphPos := FNearestGraphPoint;
ADest.FIndex := PointIndex;
if not SameTransformations(FSeries, AOtherEndSeries) then
FSeries := nil;
end;
ADest.FSeries := FSeries;
if FSeries = nil then
ADest.SetGraphPos(FChart.ImageToGraph(APoint));
ADest.GraphPos := FChart.ImageToGraph(APoint);
Result := (FSeries <> nil) or (AMode <> dpmLock);
end;

View File

@ -408,7 +408,7 @@ type
public
procedure Assign(ASource: TPointRef);
function AxisPos(ADefaultSeries: TBasicChartSeries = nil): TDoublePoint;
property GraphPos: TDoublePoint read FGraphPos;
property GraphPos: TDoublePoint read FGraphPos write SetGraphPos;
property Index: Integer read FIndex;
property Series: TBasicChartSeries read FSeries;
end;