TAChart: Exit TFieldSeries.GetNearestPoint immediately when series is empty.

git-svn-id: trunk@60640 -
This commit is contained in:
wp 2019-03-09 22:31:36 +00:00
parent cbaaf56d38
commit 4b7e0a544e

View File

@ -1904,6 +1904,8 @@ begin
AResults.FIndex := -1;
AResults.FXIndex := 0;
AResults.FYIndex := 0;
if IsEmpty then exit(false);
for i := 0 to Count - 1 do begin
if not GetVectorPoints(i, sp1, sp2) then
Continue;