mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2025-10-09 05:57:15 +03:00
Callback datasource has been fixed
This commit is contained in:
@@ -576,7 +576,10 @@ void ReportRender::renderDataBand(BandDesignIntf *dataBand)
|
||||
|
||||
m_reprintableBands.removeOne(dataBand->bandHeader());
|
||||
|
||||
renderGroupFooter(dataBand);
|
||||
if (bandDatasource->prior()){
|
||||
renderGroupFooter(dataBand);
|
||||
bandDatasource->next();
|
||||
}
|
||||
|
||||
if (footer && !footer->printAlways())
|
||||
renderBand(footer, 0, StartNewPageAsNeeded);
|
||||
@@ -706,11 +709,8 @@ void ReportRender::renderGroupHeader(BandDesignIntf *parentBand, IDataSource* da
|
||||
renderBand(footer, 0, StartNewPageAsNeeded);
|
||||
}
|
||||
|
||||
if (didGoBack)
|
||||
{
|
||||
//New Method to undo prior... Alternatively pass in bool isUndoPrior into next()
|
||||
dataSource->undoPrior();
|
||||
//dataSource->next(); //Also emit changePos, which it should not at this point
|
||||
if (didGoBack){
|
||||
dataSource->next();
|
||||
}
|
||||
}
|
||||
closeDataGroup(band);
|
||||
|
Reference in New Issue
Block a user