* Print column header if present, even if only 1 column (bug ID 33305)

git-svn-id: trunk@38411 -
This commit is contained in:
michael 2018-03-05 13:54:50 +00:00
parent 7275963030
commit 6e09180502

View File

@ -10064,8 +10064,7 @@ begin
//writeln(' -> ',FormatFloat('#,##0.0', FSpaceLeft-lSpaceNeeded));
if Result then
begin
if FRTIsMultiColumn and
not RTIsLastColumn then
if FRTIsMultiColumn and not RTIsLastColumn then
begin
FNewColumn := True;
end
@ -10126,7 +10125,7 @@ var
begin
FOverflowed := False;
lPrevRTPage := TFPReportCustomPage(RTObjects[RTCurPageIdx-1]);
if FRTIsMultiColumn and (FGroupFooterList.Find(TFPReportCustomColumnFooterBand) <> nil) then
if (FGroupFooterList.Find(TFPReportCustomColumnFooterBand) <> nil) then
lBandCount := lPrevRTPage.BandCount - 2 // skip over the ColumnFooter band
else
lBandCount := lPrevRTPage.BandCount - 1;
@ -10144,7 +10143,7 @@ procedure TFPReportLayouter.PrepareHeader(APage: TFPReportCustomPage);
begin
FTitle := TFPReportCustomTitleBand(APage.FindBand(TFPReportCustomTitleBand));
FPageHeader := TFPReportCustomPageHeaderBand(APage.FindBand(TFPReportCustomPageHeaderBand));
if FRTIsMultiColumn then
// if FRTIsMultiColumn then
FColumnHeader := TFPReportColumnHeaderBand(Pages[RTCurDsgnPageIdx].FindBand(TFPReportColumnHeaderBand));
end;
@ -10370,7 +10369,7 @@ begin
(lGrp.FIntermediateFooter <> []) then
FGroupFooterList.Add(lGrp.GroupFooter);
end;
if FRTIsMultiColumn then
// if FRTIsMultiColumn then
FColumnFooter := TFPReportColumnFooterBand(Pages[RTCurDsgnPageIdx].FindBand(TFPReportColumnFooterBand));
end;