TAChart: Add missing check for NaN to TCustomChartSource.XOfMax and .XOfMin (https://forum.lazarus.freepascal.org/index.php/topic,49848.0.html).

git-svn-id: trunk@63180 -
This commit is contained in:
wp 2020-05-18 09:36:40 +00:00
parent 7def888afc
commit efbbeb241f

View File

@ -1583,7 +1583,7 @@ var
begin
for i := 0 to Count - 1 do
with Item[i]^ do
if Y = Extent.b.Y then begin
if not IsNaN(Y) and (Y = Extent.b.Y) then begin
if XCount > 0 then
exit(GetX(AIndex))
else
@ -1598,7 +1598,7 @@ var
begin
for i := 0 to Count - 1 do
with Item[i]^ do
if Y = Extent.a.Y then begin
if not IsNaN(Y) and (Y = Extent.a.Y) then begin
if XCount > 0 then
exit(GetX(AIndex))
else