From cdc78f5a0f9a55a0447fe0a3e20471e4a07436d7 Mon Sep 17 00:00:00 2001 From: Arin Alexander Date: Wed, 14 Oct 2020 16:19:51 +0300 Subject: [PATCH] Band index generation has been fixed --- common.pri | 2 +- limereport/lrpageitemdesignintf.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/common.pri b/common.pri index e0c2983..7c76d17 100644 --- a/common.pri +++ b/common.pri @@ -133,7 +133,7 @@ RCC_DIR = $${ARCH_DIR}/$${BUILD_TYPE}/rcc LIMEREPORT_VERSION_MAJOR = 1 LIMEREPORT_VERSION_MINOR = 5 -LIMEREPORT_VERSION_RELEASE = 71 +LIMEREPORT_VERSION_RELEASE = 72 LIMEREPORT_VERSION = '$${LIMEREPORT_VERSION_MAJOR}.$${LIMEREPORT_VERSION_MINOR}.$${LIMEREPORT_VERSION_RELEASE}' DEFINES *= LIMEREPORT_VERSION_STR=\\\"$${LIMEREPORT_VERSION}\\\" diff --git a/limereport/lrpageitemdesignintf.cpp b/limereport/lrpageitemdesignintf.cpp index 3bcb402..664cf9c 100644 --- a/limereport/lrpageitemdesignintf.cpp +++ b/limereport/lrpageitemdesignintf.cpp @@ -244,8 +244,7 @@ int PageItemDesignIntf::calcBandIndex(BandDesignIntf::BandsType bandType, BandDe } else { int maxChildIndex = 0; 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); }