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

splitting instead changing height

This commit is contained in:
Arin Alex 2016-08-02 20:32:52 +03:00
parent da3eb52563
commit c52a0240c6

View File

@ -325,8 +325,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 {
@ -341,8 +342,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]);