mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-03 03:43:42 +02:00
TAChart: Replace r62069 #40d59fec0b by better solution.
git-svn-id: trunk@62070 -
This commit is contained in:
parent
40d59fec0b
commit
e216e6cfec
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user