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

Band index generation has been fixed

This commit is contained in:
Arin Alexander 2020-10-14 16:19:51 +03:00
parent cf32b586fe
commit cdc78f5a0f
2 changed files with 2 additions and 3 deletions

View File

@ -133,7 +133,7 @@ RCC_DIR = $${ARCH_DIR}/$${BUILD_TYPE}/rcc
LIMEREPORT_VERSION_MAJOR = 1 LIMEREPORT_VERSION_MAJOR = 1
LIMEREPORT_VERSION_MINOR = 5 LIMEREPORT_VERSION_MINOR = 5
LIMEREPORT_VERSION_RELEASE = 71 LIMEREPORT_VERSION_RELEASE = 72
LIMEREPORT_VERSION = '$${LIMEREPORT_VERSION_MAJOR}.$${LIMEREPORT_VERSION_MINOR}.$${LIMEREPORT_VERSION_RELEASE}' LIMEREPORT_VERSION = '$${LIMEREPORT_VERSION_MAJOR}.$${LIMEREPORT_VERSION_MINOR}.$${LIMEREPORT_VERSION_RELEASE}'
DEFINES *= LIMEREPORT_VERSION_STR=\\\"$${LIMEREPORT_VERSION}\\\" DEFINES *= LIMEREPORT_VERSION_STR=\\\"$${LIMEREPORT_VERSION}\\\"

View File

@ -244,8 +244,7 @@ int PageItemDesignIntf::calcBandIndex(BandDesignIntf::BandsType bandType, BandDe
} else { } else {
int maxChildIndex = 0; int maxChildIndex = 0;
foreach(BandDesignIntf* band, m_bands){ foreach(BandDesignIntf* band, m_bands){
if (band->bandType() == BandDesignIntf::Data) maxChildIndex = std::max(maxChildIndex, band->maxChildIndex());
maxChildIndex = std::max(maxChildIndex, band->maxChildIndex());
} }
bandIndex = std::max(bandIndex, maxChildIndex + 1); bandIndex = std::max(bandIndex, maxChildIndex + 1);
} }