0
0
mirror of https://github.com/fralx/LimeReport.git synced 2024-12-24 16:44:39 +03:00

TextItem has been fixed

This commit is contained in:
Arin Alex 2016-11-01 20:07:10 +03:00
parent c623932afb
commit 724e3c004c

View File

@ -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);
} }