mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 01:57:57 +02:00
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:
parent
a85d06d750
commit
4956f8383e
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user