mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 10:59:29 +02:00
TAChart: Exit TFieldSeries.GetNearestPoint immediately when series is empty.
git-svn-id: trunk@60640 -
This commit is contained in:
parent
cbaaf56d38
commit
4b7e0a544e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user