mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-20 17:40:40 +02:00
TAChart: Fix crash of IDE if TPieSeries is linked to a TUserDefinedChartSource
git-svn-id: trunk@49019 -
This commit is contained in:
parent
ad57731ec6
commit
fd258ffc81
@ -499,6 +499,8 @@ begin
|
|||||||
// This is a workaround for db source invalidating the cache due to
|
// This is a workaround for db source invalidating the cache due to
|
||||||
// unnecessary "dataset changed" events.
|
// unnecessary "dataset changed" events.
|
||||||
total := Source.ValuesTotal;
|
total := Source.ValuesTotal;
|
||||||
|
if total = 0 then
|
||||||
|
exit;
|
||||||
for i := 0 to Count - 1 do begin
|
for i := 0 to Count - 1 do begin
|
||||||
di := Source[i];
|
di := Source[i];
|
||||||
if IsNan(di^.Y) then continue;
|
if IsNan(di^.Y) then continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user