From 11f6f30c3ae24b85d2dfd6eaf91345ed1309b4de Mon Sep 17 00:00:00 2001 From: Alexander Arin Date: Wed, 26 Jan 2022 20:15:21 +0300 Subject: [PATCH] Group footer band rendering has been fixed --- limereport/lrreportrender.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/limereport/lrreportrender.cpp b/limereport/lrreportrender.cpp index 8930279..917bf04 100644 --- a/limereport/lrreportrender.cpp +++ b/limereport/lrreportrender.cpp @@ -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(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();