mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2025-11-01 06:11:23 +03:00
TextItem placement on a page has been fixed
This commit is contained in:
@@ -66,11 +66,13 @@ void ItemDesignIntf::setItemLocation(LocationType location)
|
||||
} else {
|
||||
if (scene()){
|
||||
PageItemDesignIntf* page = dynamic_cast<PageDesignIntf*>(scene())->pageItem();
|
||||
QPointF parentPos = page->mapFromItem(parentItem(),x(),y());
|
||||
setParentItem(page);
|
||||
setParent(page);
|
||||
setPos(parentPos);
|
||||
emit itemLocationChanged(this, page);
|
||||
if (page){
|
||||
QPointF parentPos = page->mapFromItem(parentItem(),x(),y());
|
||||
setParentItem(page);
|
||||
setParent(page);
|
||||
setPos(parentPos);
|
||||
emit itemLocationChanged(this, page);
|
||||
}
|
||||
}
|
||||
}
|
||||
notify("locationType",oldValue,location);
|
||||
|
||||
Reference in New Issue
Block a user