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 Alexander 2016-07-15 11:44:13 +03:00
commit 378ed68ec1

View File

@ -200,8 +200,9 @@ int PageItemDesignIntf::calcBandIndex(BandDesignIntf::BandsType bandType, BandDe
qSort(m_bands.begin(),m_bands.end(),bandSortBandLessThenByIndex);
foreach(BandDesignIntf* band,m_bands){
if ((band->bandType()==BandDesignIntf::GroupHeader)&&(band->bandType()>bandType)) break;
if ((band->bandType()>bandType)) break;
if (bandIndex<=band->bandIndex()) bandIndex=band->maxChildIndex()+1;
if ((band->bandType()<=bandType)){
if (bandIndex<=band->bandIndex()) bandIndex=band->maxChildIndex()+1;
}
}
if (bandIndex==-1) {
@ -218,7 +219,7 @@ int PageItemDesignIntf::calcBandIndex(BandDesignIntf::BandsType bandType, BandDe
switch (bandType) {
case BandDesignIntf::SubDetailBand:
bandIndex = parentBand->bandIndex() + 1;
bandIndex = parentBand->maxChildIndex() + 1;
increaseBandIndex = true;
break;
case BandDesignIntf::SubDetailHeader: