From dd40aa1137523284210f561df962f541d9cd5b36 Mon Sep 17 00:00:00 2001 From: Arin Alexander Date: Wed, 12 Oct 2016 00:53:49 +0400 Subject: [PATCH] TextItem splitting has been fixed --- limereport/items/lrtextitem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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";