mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-23 20:22:58 +03:00
Group footer band rendering has been fixed
This commit is contained in:
parent
cb2d77df10
commit
11f6f30c3a
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user