mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-25 04:54:40 +03:00
The bands insertion order has been fixed
This commit is contained in:
parent
744c6dfe87
commit
3edd101d52
@ -200,8 +200,9 @@ int PageItemDesignIntf::calcBandIndex(BandDesignIntf::BandsType bandType, BandDe
|
|||||||
qSort(m_bands.begin(),m_bands.end(),bandSortBandLessThenByIndex);
|
qSort(m_bands.begin(),m_bands.end(),bandSortBandLessThenByIndex);
|
||||||
foreach(BandDesignIntf* band,m_bands){
|
foreach(BandDesignIntf* band,m_bands){
|
||||||
if ((band->bandType()==BandDesignIntf::GroupHeader)&&(band->bandType()>bandType)) break;
|
if ((band->bandType()==BandDesignIntf::GroupHeader)&&(band->bandType()>bandType)) break;
|
||||||
if ((band->bandType()>bandType)) break;
|
if ((band->bandType()<=bandType)){
|
||||||
if (bandIndex<=band->bandIndex()) bandIndex=band->maxChildIndex()+1;
|
if (bandIndex<=band->bandIndex()) bandIndex=band->maxChildIndex()+1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (bandIndex==-1) {
|
if (bandIndex==-1) {
|
||||||
@ -218,7 +219,7 @@ int PageItemDesignIntf::calcBandIndex(BandDesignIntf::BandsType bandType, BandDe
|
|||||||
|
|
||||||
switch (bandType) {
|
switch (bandType) {
|
||||||
case BandDesignIntf::SubDetailBand:
|
case BandDesignIntf::SubDetailBand:
|
||||||
bandIndex = parentBand->bandIndex() + 1;
|
bandIndex = parentBand->maxChildIndex() + 1;
|
||||||
increaseBandIndex = true;
|
increaseBandIndex = true;
|
||||||
break;
|
break;
|
||||||
case BandDesignIntf::SubDetailHeader:
|
case BandDesignIntf::SubDetailHeader:
|
||||||
|
Loading…
Reference in New Issue
Block a user