mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-01 09:03:49 +02:00
TAChart: Replace r62069 #40d59fec0b by better solution.
git-svn-id: trunk@62070 -
This commit is contained in:
parent
40d59fec0b
commit
e216e6cfec
@ -1862,11 +1862,12 @@ 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);
|
||||
end;
|
||||
end;
|
||||
|
||||
// AIndex refers to the index into YList here.
|
||||
// The ordinary Y value has Index = -1.
|
||||
|
Loading…
Reference in New Issue
Block a user