0
0
mirror of https://github.com/fralx/LimeReport.git synced 2024-12-24 00:33:02 +03:00

Finish 1.6.4

This commit is contained in:
Alexander Arin 2022-01-26 20:15:31 +03:00
commit 4991c5d782

View File

@ -815,8 +815,9 @@ void ReportRender::renderDataBand(BandDesignIntf *dataBand)
m_reprintableBands.removeOne(header);
if (header) recalcIfNeeded(header);
if (bandDatasource->prior()){
renderGroupFooter(dataBand);
bool didGoBack = !bandDatasource->eof() && bandDatasource->prior();
renderGroupFooterByHeader(dataBand);
if (didGoBack){
bandDatasource->next();
}
@ -1001,7 +1002,7 @@ void ReportRender::renderGroupHeader(BandDesignIntf *parentBand, IDataSource* da
IGroupBand* gb = dynamic_cast<IGroupBand*>(band);
if (gb&&gb->isNeedToClose(datasources())){
if (band->childBands().count()>0){
bool didGoBack = dataSource->prior();
bool didGoBack = !dataSource->eof() && dataSource->prior();
renderGroupFooterByHeader(band);
if (didGoBack){
dataSource->next();