mirror of
https://github.com/fralx/LimeReport.git
synced 2024-12-24 08:34:38 +03:00
splitting instead changing height
This commit is contained in:
parent
da3eb52563
commit
c52a0240c6
@ -325,8 +325,9 @@ void ReportRender::renderBand(BandDesignIntf *patternBand, ReportRender::DataRen
|
|||||||
if (percent<bandClone->maxScalePercent()){
|
if (percent<bandClone->maxScalePercent()){
|
||||||
percent += 2;
|
percent += 2;
|
||||||
bandClone->setScale((100-percent)/100);
|
bandClone->setScale((100-percent)/100);
|
||||||
bandClone->setHeight(m_maxHeightByColumn[m_currentColumn]);
|
BandDesignIntf* upperPart = dynamic_cast<BandDesignIntf*>(bandClone->cloneUpperPart(m_maxHeightByColumn[m_currentColumn]));
|
||||||
registerBand(bandClone);
|
registerBand(upperPart);
|
||||||
|
delete bandClone;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
@ -341,8 +342,9 @@ void ReportRender::renderBand(BandDesignIntf *patternBand, ReportRender::DataRen
|
|||||||
startNewPage();
|
startNewPage();
|
||||||
}
|
}
|
||||||
if (!registerBand(bandClone)) {
|
if (!registerBand(bandClone)) {
|
||||||
bandClone->setHeight(m_maxHeightByColumn[m_currentColumn]);
|
BandDesignIntf* upperPart = dynamic_cast<BandDesignIntf*>(bandClone->cloneUpperPart(m_maxHeightByColumn[m_currentColumn]));
|
||||||
registerBand(bandClone);
|
registerBand(upperPart);
|
||||||
|
delete bandClone;
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
bandClone->setHeight(m_maxHeightByColumn[m_currentColumn]);
|
bandClone->setHeight(m_maxHeightByColumn[m_currentColumn]);
|
||||||
|
Loading…
Reference in New Issue
Block a user