mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-28 06:23:56 +02:00
* Fix bug #33397, footer must be added at the end, but is extracted from list
git-svn-id: trunk@57486 -
This commit is contained in:
parent
d4f0abbb32
commit
677d92e87b
@ -1001,13 +1001,13 @@ Var
|
||||
DY,Y : TFPReportUnits;
|
||||
|
||||
// Position band and remove it from the list. Recurses to add child bands.
|
||||
Function AddBandToList(ABand : TFPReportCustomBand) : Boolean;
|
||||
Function AddBandToList(ABand : TFPReportCustomBand; Force : Boolean = False) : Boolean;
|
||||
|
||||
begin
|
||||
Result:=Assigned(ABand);
|
||||
If not Result then
|
||||
exit;
|
||||
if L.IndexOf(aBand)=-1 then
|
||||
if (L.IndexOf(aBand)=-1) and not Force then
|
||||
exit;
|
||||
{$IFDEF DEBUGROL}Writeln('Placing band ',ABand.ClassName,'(',ABAnd.Name,') at ',Y);{$ENDIF}
|
||||
ABand.Layout.Top:=Y;
|
||||
@ -1146,7 +1146,7 @@ begin
|
||||
F:=FindBandType(L,TFPReportCustomPageFooterBand,I,True);
|
||||
While L.Count>0 do
|
||||
AddBandToList(TFPReportCustomBand(L[0]));
|
||||
AddBandToList(F);
|
||||
AddBandToList(F,True);
|
||||
finally
|
||||
L.Free;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user