mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-25 04:54:40 +03:00
Group band has been fixed
This commit is contained in:
parent
f64a918ffe
commit
a80a1298eb
@ -724,13 +724,19 @@ void ReportRender::renderGroupHeader(BandDesignIntf *parentBand, IDataSource* da
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (gb && !gb->isStarted()){
|
if (gb && !gb->isStarted()){
|
||||||
if (band->reprintOnEachPage())
|
if (band->reprintOnEachPage()){
|
||||||
m_reprintableBands.append(band);
|
m_reprintableBands.append(band);
|
||||||
|
}
|
||||||
gb->startGroup(m_datasources);
|
gb->startGroup(m_datasources);
|
||||||
openDataGroup(band);
|
openDataGroup(band);
|
||||||
if (!firstTime && gb->startNewPage()){
|
if (!firstTime && gb->startNewPage()){
|
||||||
if (gb->resetPageNumber()) resetPageNumber(BandReset);
|
if (gb->resetPageNumber()) resetPageNumber(BandReset);
|
||||||
|
if (band->reprintOnEachPage()){
|
||||||
|
savePage();
|
||||||
|
startNewPage();
|
||||||
|
} else {
|
||||||
renderBand(band, 0, ForcedStartPage);
|
renderBand(band, 0, ForcedStartPage);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
renderBand(band, 0, StartNewPageAsNeeded);
|
renderBand(band, 0, StartNewPageAsNeeded);
|
||||||
}
|
}
|
||||||
@ -845,6 +851,14 @@ void ReportRender::closeDataGroup(BandDesignIntf *band)
|
|||||||
if (groupBand){
|
if (groupBand){
|
||||||
groupBand->closeGroup();
|
groupBand->closeGroup();
|
||||||
if (band->reprintOnEachPage()) m_reprintableBands.removeOne(band);
|
if (band->reprintOnEachPage()) m_reprintableBands.removeOne(band);
|
||||||
|
|
||||||
|
QList<BandDesignIntf*>::Iterator it = m_reprintableBands.begin();
|
||||||
|
while (it != m_reprintableBands.end()){
|
||||||
|
if ((*it)->bandIndex()>band->bandIndex())
|
||||||
|
it = m_reprintableBands.erase(it);
|
||||||
|
else
|
||||||
|
it++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
closeGroup(band);
|
closeGroup(band);
|
||||||
}
|
}
|
||||||
@ -1094,7 +1108,6 @@ void ReportRender::startNewPage()
|
|||||||
m_dataAreaSize = m_maxHeightByColumn[m_currentColumn];
|
m_dataAreaSize = m_maxHeightByColumn[m_currentColumn];
|
||||||
m_renderedDataBandCount = 0;
|
m_renderedDataBandCount = 0;
|
||||||
|
|
||||||
|
|
||||||
foreach (BandDesignIntf* band, m_reprintableBands) {
|
foreach (BandDesignIntf* band, m_reprintableBands) {
|
||||||
renderBand(band, 0);
|
renderBand(band, 0);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user