mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-30 23:23:39 +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(AXIdx, AYIdx);
|
||||
if IsNaN(AGraphPt) then
|
||||
pt := Point(10000, 10000)
|
||||
else
|
||||
exit(MaxInt)
|
||||
else begin
|
||||
pt := ParentChart.GraphToImage(AGraphPt);
|
||||
Result := AParams.FDistFunc(AParams.FPoint, pt);
|
||||
Result := AParams.FDistFunc(AParams.FPoint, pt);
|
||||
end;
|
||||
end;
|
||||
|
||||
// AIndex refers to the index into YList here.
|
||||
|
Loading…
Reference in New Issue
Block a user