From fd258ffc81942324de19a977d3a28473a4bca25a Mon Sep 17 00:00:00 2001 From: wp Date: Thu, 14 May 2015 10:54:48 +0000 Subject: [PATCH] TAChart: Fix crash of IDE if TPieSeries is linked to a TUserDefinedChartSource git-svn-id: trunk@49019 - --- components/tachart/taradialseries.pas | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/tachart/taradialseries.pas b/components/tachart/taradialseries.pas index c40957f7f1..3cf2adb6df 100644 --- a/components/tachart/taradialseries.pas +++ b/components/tachart/taradialseries.pas @@ -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;