mirror of
https://github.com/fralx/LimeReport.git
synced 2024-12-24 16:44:39 +03:00
Merge branch 'master' into 1.4
This commit is contained in:
commit
3bf993eb5a
@ -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