TAChart: Fix crash of IDE if TPieSeries is linked to a TUserDefinedChartSource

git-svn-id: trunk@49019 -
This commit is contained in:
wp 2015-05-14 10:54:48 +00:00
parent ad57731ec6
commit fd258ffc81

View File

@ -499,6 +499,8 @@ begin
// This is a workaround for db source invalidating the cache due to
// unnecessary "dataset changed" events.
total := Source.ValuesTotal;
if total = 0 then
exit;
for i := 0 to Count - 1 do begin
di := Source[i];
if IsNan(di^.Y) then continue;