* Fix bug #33366, group footer ordering

git-svn-id: trunk@57480 -
This commit is contained in:
michael 2018-03-09 08:18:45 +00:00
parent 1244ee0521
commit 2f07f2fb0e

View File

@ -1011,6 +1011,7 @@ Var
B:=TFPReportCustomBandWithData(L[i]);
if (B.Data=ADetail.Data) then
begin
// Recursively add parent groups
if B is TFPReportCustomGroupHeaderBand then
begin
P:=TFPReportGroupHeaderBand(B);
@ -1020,6 +1021,21 @@ Var
P:=TFPReportGroupHeaderBand(P.ParentGroupHeader);
end;
end;
// Recursively add child group footers...
if B is TFPReportCustomGroupFooterBand then
begin
P:=TFPReportGroupHeaderBand(TFPReportGroupFooterBand(B).GroupHeader);
if Assigned(P) then
begin
P:=TFPReportGroupHeaderBand(P.ChildGroupHeader);
While P<>Nil do
begin
if Assigned(P.GroupFooter) then
AddBandToList(P.GroupFooter);
P:=TFPReportGroupHeaderBand(P.ChildGroupHeader);
end;
end;
end;
AddBandToList(B);
I:=-1;
end;