mirror of
https://github.com/fralx/LimeReport.git
synced 2024-12-23 16:22:58 +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);
|
||||
BaseDesignIntf* parentItem = dynamic_cast<BaseDesignIntf*>(parent);
|
||||
while (!pageItem){
|
||||
while (!pageItem && parentItem){
|
||||
parentItem = dynamic_cast<BaseDesignIntf*>(parentItem->parentItem());
|
||||
pageItem = dynamic_cast<PageItemDesignIntf*>(parentItem);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user