mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-11 20:36:09 +02:00
parent
1244ee0521
commit
2f07f2fb0e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user