diff --git a/limereport/items/lrtextitem.cpp b/limereport/items/lrtextitem.cpp index 20ce271..ba84e2b 100644 --- a/limereport/items/lrtextitem.cpp +++ b/limereport/items/lrtextitem.cpp @@ -531,8 +531,8 @@ BaseDesignIntf *TextItem::cloneBottomPart(int height, QObject *owner, QGraphicsI loop_exit:; int textPos=0; - for (;curBlock!=m_text->end();curBlock=curBlock.next()){ - for (curLine=0;curLinelineCount();curLine++){ + for (;curBlock!=m_text->end();curBlock=curBlock.next(),curLine=0){ + for (;curLinelineCount();curLine++){ if (tmpText=="") textPos= curBlock.layout()->lineAt(curLine).textStart(); tmpText+=curBlock.text().mid(curBlock.layout()->lineAt(curLine).textStart(), curBlock.layout()->lineAt(curLine).textLength()) + "\n";