mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-24 20:44:39 +03:00
TextItem has been fixed
This commit is contained in:
parent
c623932afb
commit
724e3c004c
@ -63,7 +63,7 @@ TextItem::TextItem(QObject *owner, QGraphicsItem *parent)
|
|||||||
|
|
||||||
PageItemDesignIntf* pageItem = dynamic_cast<PageItemDesignIntf*>(parent);
|
PageItemDesignIntf* pageItem = dynamic_cast<PageItemDesignIntf*>(parent);
|
||||||
BaseDesignIntf* parentItem = dynamic_cast<BaseDesignIntf*>(parent);
|
BaseDesignIntf* parentItem = dynamic_cast<BaseDesignIntf*>(parent);
|
||||||
while (!pageItem){
|
while (!pageItem && parentItem){
|
||||||
parentItem = dynamic_cast<BaseDesignIntf*>(parentItem->parentItem());
|
parentItem = dynamic_cast<BaseDesignIntf*>(parentItem->parentItem());
|
||||||
pageItem = dynamic_cast<PageItemDesignIntf*>(parentItem);
|
pageItem = dynamic_cast<PageItemDesignIntf*>(parentItem);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user