mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-24 04:33:03 +03:00
Finish 1.6.4
This commit is contained in:
commit
4991c5d782
@ -815,8 +815,9 @@ void ReportRender::renderDataBand(BandDesignIntf *dataBand)
|
|||||||
m_reprintableBands.removeOne(header);
|
m_reprintableBands.removeOne(header);
|
||||||
if (header) recalcIfNeeded(header);
|
if (header) recalcIfNeeded(header);
|
||||||
|
|
||||||
if (bandDatasource->prior()){
|
bool didGoBack = !bandDatasource->eof() && bandDatasource->prior();
|
||||||
renderGroupFooter(dataBand);
|
renderGroupFooterByHeader(dataBand);
|
||||||
|
if (didGoBack){
|
||||||
bandDatasource->next();
|
bandDatasource->next();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1001,7 +1002,7 @@ void ReportRender::renderGroupHeader(BandDesignIntf *parentBand, IDataSource* da
|
|||||||
IGroupBand* gb = dynamic_cast<IGroupBand*>(band);
|
IGroupBand* gb = dynamic_cast<IGroupBand*>(band);
|
||||||
if (gb&&gb->isNeedToClose(datasources())){
|
if (gb&&gb->isNeedToClose(datasources())){
|
||||||
if (band->childBands().count()>0){
|
if (band->childBands().count()>0){
|
||||||
bool didGoBack = dataSource->prior();
|
bool didGoBack = !dataSource->eof() && dataSource->prior();
|
||||||
renderGroupFooterByHeader(band);
|
renderGroupFooterByHeader(band);
|
||||||
if (didGoBack){
|
if (didGoBack){
|
||||||
dataSource->next();
|
dataSource->next();
|
||||||
|
Loading…
Reference in New Issue
Block a user