Spliting band without AutoHeight has been fixed

This commit is contained in:
Arin Alexander
2016-05-17 22:52:53 +04:00
parent f3401c4c7e
commit 80f2a135cd
2 changed files with 8 additions and 7 deletions

View File

@@ -741,8 +741,10 @@ BandDesignIntf* ReportRender::sliceBand(BandDesignIntf *band, BandDesignIntf* pa
while (band->height()>m_maxHeightByColumn[m_currentColumn]) {
band = saveUppperPartReturnBottom(band,m_maxHeightByColumn[m_currentColumn],patternBand);
if (!band->isEmpty()) {
band->setHeight(0);
band->updateItemSize(m_datasources);
if (band->autoHeight()){
band->setHeight(0);
band->updateItemSize(m_datasources);
}
DataBandDesignIntf* data = dynamic_cast<DataBandDesignIntf*>(band);
if (isLast && data && data->keepFooterTogether() &&
band->height()<m_maxHeightByColumn[m_currentColumn] && band->sliceLastRow()