Merged revision(s) 49019-49020 #fd258ffc81-#fd258ffc81 from trunk:

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

git-svn-id: branches/fixes_1_4@49037 -
This commit is contained in:
maxim 2015-05-15 21:55:59 +00:00
parent a85d06d750
commit 4956f8383e
2 changed files with 3 additions and 0 deletions

View File

@ -1414,6 +1414,7 @@ var
ns := Source.Count;
if (np <= 0) or (ns = 0) or (ns < np) then exit;
CalcXRange(xmin, xmax);
if xmin = xmax then exit;
n := 0;
for i := 0 to ns - 1 do

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;