mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-30 08:46:13 +02:00
TAChart: Fix chart distance tools crashing when series contains a NaN value.
git-svn-id: trunk@62069 -
This commit is contained in:
parent
9236d9cb88
commit
40d59fec0b
@ -1861,7 +1861,10 @@ var
|
||||
begin
|
||||
Unused(APointIdx);
|
||||
Unused(AXIdx, AYIdx);
|
||||
pt := ParentChart.GraphToImage(AGraphPt);
|
||||
if IsNaN(AGraphPt) then
|
||||
pt := Point(10000, 10000)
|
||||
else
|
||||
pt := ParentChart.GraphToImage(AGraphPt);
|
||||
Result := AParams.FDistFunc(AParams.FPoint, pt);
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user