mirror of
https://github.com/fralx/LimeReport.git
synced 2025-09-23 08:29:07 +03:00
Band slicing has been fixed
This commit is contained in:
@@ -585,7 +585,7 @@ BaseDesignIntf *BandDesignIntf::cloneBottomPart(int height, QObject *owner, QGra
|
||||
BaseDesignIntf* tmpItem = item->cloneItem(item->itemMode(),bottomPart,bottomPart);
|
||||
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();
|
||||
if (item->isSplittable() && item->canBeSplitted(sliceHeight)) {
|
||||
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);
|
||||
}
|
||||
} else {
|
||||
if ((item->geometry().bottom()-height)>height){
|
||||
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));
|
||||
|
Reference in New Issue
Block a user