mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-06 05:57:21 +01:00
TAChart: Fix SIGFPE while drawing mark labels for series with NaNs
git-svn-id: trunk@39705 -
This commit is contained in:
parent
7e729e5e63
commit
f3f890e876
@ -944,6 +944,7 @@ var
|
|||||||
begin
|
begin
|
||||||
if not Marks.IsMarkLabelsVisible then exit;
|
if not Marks.IsMarkLabelsVisible then exit;
|
||||||
for i := 0 to Count - 1 do begin
|
for i := 0 to Count - 1 do begin
|
||||||
|
if IsNan(Source[i]^.Point) then continue;
|
||||||
g := GetLabelDataPoint(i);
|
g := GetLabelDataPoint(i);
|
||||||
ld := GetLabelDirection(i);
|
ld := GetLabelDirection(i);
|
||||||
for si := 0 to Source.YCount - 1 do begin
|
for si := 0 to Source.YCount - 1 do begin
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user