mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-25 04:54:40 +03:00
Band slicing has been fixed
This commit is contained in:
parent
483bf57e5d
commit
0dd8640859
@ -62,7 +62,7 @@ RCC_DIR = $${ARCH_DIR}/$${BUILD_TYPE}/rcc
|
|||||||
|
|
||||||
LIMEREPORT_VERSION_MAJOR = 1
|
LIMEREPORT_VERSION_MAJOR = 1
|
||||||
LIMEREPORT_VERSION_MINOR = 4
|
LIMEREPORT_VERSION_MINOR = 4
|
||||||
LIMEREPORT_VERSION_RELEASE = 75
|
LIMEREPORT_VERSION_RELEASE = 76
|
||||||
|
|
||||||
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}\"
|
||||||
|
@ -585,7 +585,7 @@ BaseDesignIntf *BandDesignIntf::cloneBottomPart(int height, QObject *owner, QGra
|
|||||||
BaseDesignIntf* tmpItem = item->cloneItem(item->itemMode(),bottomPart,bottomPart);
|
BaseDesignIntf* tmpItem = item->cloneItem(item->itemMode(),bottomPart,bottomPart);
|
||||||
tmpItem->setPos(tmpItem->pos().x(), (tmpItem->pos().y()-height)+borderLineSize());
|
tmpItem->setPos(tmpItem->pos().x(), (tmpItem->pos().y()-height)+borderLineSize());
|
||||||
}
|
}
|
||||||
else if ((item->geometry().top()<height) && (item->geometry().bottom()>height)){
|
else if ((item->geometry().top()<=height) && (item->geometry().bottom()>height)){
|
||||||
int sliceHeight = height-item->geometry().top();
|
int sliceHeight = height-item->geometry().top();
|
||||||
if (item->isSplittable() && item->canBeSplitted(sliceHeight)) {
|
if (item->isSplittable() && item->canBeSplitted(sliceHeight)) {
|
||||||
BaseDesignIntf* tmpItem=item->cloneBottomPart(sliceHeight,bottomPart,bottomPart);
|
BaseDesignIntf* tmpItem=item->cloneBottomPart(sliceHeight,bottomPart,bottomPart);
|
||||||
@ -597,7 +597,7 @@ BaseDesignIntf *BandDesignIntf::cloneBottomPart(int height, QObject *owner, QGra
|
|||||||
moveItemsDown(item->pos().y()+item->height(), sizeOffset + bottomOffset);
|
moveItemsDown(item->pos().y()+item->height(), sizeOffset + bottomOffset);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ((item->geometry().bottom()-height)>height){
|
if ((item->geometry().bottom()-height)>=height){
|
||||||
BaseDesignIntf* tmpItem = item->cloneItem(item->itemMode(),bottomPart,bottomPart);
|
BaseDesignIntf* tmpItem = item->cloneItem(item->itemMode(),bottomPart,bottomPart);
|
||||||
tmpItem->setPos(tmpItem->pos().x(),borderLineSize());
|
tmpItem->setPos(tmpItem->pos().x(),borderLineSize());
|
||||||
tmpItem->setHeight((this->height()-height));
|
tmpItem->setHeight((this->height()-height));
|
||||||
|
Loading…
Reference in New Issue
Block a user