TAChart: Replace r62069 #40d59fec0b by better solution.

git-svn-id: trunk@62070 -
This commit is contained in:
wp 2019-10-17 22:08:42 +00:00
parent 40d59fec0b
commit e216e6cfec

View File

@ -1862,10 +1862,11 @@ begin
Unused(APointIdx); Unused(APointIdx);
Unused(AXIdx, AYIdx); Unused(AXIdx, AYIdx);
if IsNaN(AGraphPt) then if IsNaN(AGraphPt) then
pt := Point(10000, 10000) exit(MaxInt)
else else begin
pt := ParentChart.GraphToImage(AGraphPt); pt := ParentChart.GraphToImage(AGraphPt);
Result := AParams.FDistFunc(AParams.FPoint, pt); Result := AParams.FDistFunc(AParams.FPoint, pt);
end;
end; end;
// AIndex refers to the index into YList here. // AIndex refers to the index into YList here.