From 821c48c331e1e403696c31a6922ab87f614a5af6 Mon Sep 17 00:00:00 2001 From: Arin Alexander Date: Fri, 6 Mar 2020 10:56:53 +0300 Subject: [PATCH] Band splitting has been fixed --- common.pri | 2 +- limereport/lrbanddesignintf.cpp | 11 ++--------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/common.pri b/common.pri index a31bb50..e626a70 100644 --- a/common.pri +++ b/common.pri @@ -127,7 +127,7 @@ RCC_DIR = $${ARCH_DIR}/$${BUILD_TYPE}/rcc LIMEREPORT_VERSION_MAJOR = 1 LIMEREPORT_VERSION_MINOR = 5 -LIMEREPORT_VERSION_RELEASE = 39 +LIMEREPORT_VERSION_RELEASE = 41 LIMEREPORT_VERSION = '$${LIMEREPORT_VERSION_MAJOR}.$${LIMEREPORT_VERSION_MINOR}.$${LIMEREPORT_VERSION_RELEASE}' DEFINES *= LIMEREPORT_VERSION_STR=\\\"$${LIMEREPORT_VERSION}\\\" diff --git a/limereport/lrbanddesignintf.cpp b/limereport/lrbanddesignintf.cpp index fd5c3e8..474a842 100644 --- a/limereport/lrbanddesignintf.cpp +++ b/limereport/lrbanddesignintf.cpp @@ -724,15 +724,8 @@ BaseDesignIntf *BandDesignIntf::cloneBottomPart(int height, QObject *owner, QGra moveItemsDown(item->pos().y()+item->height(), sizeOffset + bottomOffset); } } else { - if ((item->geometry().bottom()-height)>=height){ - BaseDesignIntf* tmpItem = item->cloneItem(item->itemMode(),bottomPart,bottomPart); - tmpItem->setPos(tmpItem->pos().x(),borderLineSize()); - tmpItem->setHeight((this->height()-height)); - } else { - BaseDesignIntf* tmpItem = item->cloneEmpty((this->height()-height),bottomPart,bottomPart); - if (tmpItem) - tmpItem->setPos(tmpItem->pos().x(),borderLineSize()); - } + BaseDesignIntf* tmpItem = item->cloneItem(item->itemMode(),bottomPart,bottomPart); + tmpItem->setPos(tmpItem->pos().x(),borderLineSize()); } } }