From 724e3c004cad69caed10f0ef651ba21ae6634ed7 Mon Sep 17 00:00:00 2001 From: Arin Alex Date: Tue, 1 Nov 2016 20:07:10 +0300 Subject: [PATCH] TextItem has been fixed --- limereport/items/lrtextitem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/limereport/items/lrtextitem.cpp b/limereport/items/lrtextitem.cpp index d19d8ab..6edd28f 100644 --- a/limereport/items/lrtextitem.cpp +++ b/limereport/items/lrtextitem.cpp @@ -63,7 +63,7 @@ TextItem::TextItem(QObject *owner, QGraphicsItem *parent) PageItemDesignIntf* pageItem = dynamic_cast(parent); BaseDesignIntf* parentItem = dynamic_cast(parent); - while (!pageItem){ + while (!pageItem && parentItem){ parentItem = dynamic_cast(parentItem->parentItem()); pageItem = dynamic_cast(parentItem); }