mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2025-01-11 12:28:09 +03:00
The rendering process, if the not sliced band is moved to a new page, has been changed
This commit is contained in:
parent
220dcc3edb
commit
271b765722
@ -428,6 +428,7 @@ void ReportRender::replaceGroupsFunction(BandDesignIntf *band)
|
||||
BandDesignIntf* ReportRender::renderBand(BandDesignIntf *patternBand, BandDesignIntf* bandData, ReportRender::DataRenderMode mode, bool isLast)
|
||||
{
|
||||
QCoreApplication::processEvents();
|
||||
bool bandIsSliced = false;
|
||||
if (patternBand){
|
||||
|
||||
if (patternBand->isHeader())
|
||||
@ -475,6 +476,7 @@ BandDesignIntf* ReportRender::renderBand(BandDesignIntf *patternBand, BandDesign
|
||||
m_reprintableBands.removeOne(patternBand);
|
||||
if (bandClone->canBeSplitted(m_maxHeightByColumn[m_currentColumn])){
|
||||
bandClone = sliceBand(bandClone, patternBand, isLast);
|
||||
bandIsSliced = true;
|
||||
} else {
|
||||
qreal percent = (bandClone->height()-m_maxHeightByColumn[m_currentColumn])/(bandClone->height()/100);
|
||||
if (bandClone->maxScalePercent()>=percent){
|
||||
@ -504,6 +506,10 @@ BandDesignIntf* ReportRender::renderBand(BandDesignIntf *patternBand, BandDesign
|
||||
} else {
|
||||
savePage();
|
||||
startNewPage();
|
||||
if (!bandIsSliced){
|
||||
delete bandClone;
|
||||
bandClone = renderData(patternBand);
|
||||
}
|
||||
}
|
||||
if (!registerBand(bandClone)) {
|
||||
BandDesignIntf* upperPart = dynamic_cast<BandDesignIntf*>(bandClone->cloneUpperPart(m_maxHeightByColumn[m_currentColumn]));
|
||||
|
Loading…
Reference in New Issue
Block a user