0
0
mirror of https://github.com/fralx/LimeReport.git synced 2024-12-24 08:34:38 +03:00

Merge branch 'master' into 1.4

This commit is contained in:
Arin Alex 2016-08-02 20:33:11 +03:00
commit 30c1a954f3

View File

@ -365,8 +365,9 @@ void ReportRender::renderBand(BandDesignIntf *patternBand, ReportRender::DataRen
if (percent<bandClone->maxScalePercent()){
percent += 2;
bandClone->setScale((100-percent)/100);
bandClone->setHeight(m_maxHeightByColumn[m_currentColumn]);
registerBand(bandClone);
BandDesignIntf* upperPart = dynamic_cast<BandDesignIntf*>(bandClone->cloneUpperPart(m_maxHeightByColumn[m_currentColumn]));
registerBand(upperPart);
delete bandClone;
}
} else {
@ -381,8 +382,9 @@ void ReportRender::renderBand(BandDesignIntf *patternBand, ReportRender::DataRen
startNewPage();
}
if (!registerBand(bandClone)) {
bandClone->setHeight(m_maxHeightByColumn[m_currentColumn]);
registerBand(bandClone);
BandDesignIntf* upperPart = dynamic_cast<BandDesignIntf*>(bandClone->cloneUpperPart(m_maxHeightByColumn[m_currentColumn]));
registerBand(upperPart);
delete bandClone;
};
} else {
bandClone->setHeight(m_maxHeightByColumn[m_currentColumn]);