mirror of
https://github.com/fralx/LimeReport.git
synced 2024-12-24 16:44:39 +03:00
TextItem splitting has been fixed
This commit is contained in:
parent
6a55e6c0c2
commit
dd40aa1137
@ -531,8 +531,8 @@ BaseDesignIntf *TextItem::cloneBottomPart(int height, QObject *owner, QGraphicsI
|
|||||||
loop_exit:;
|
loop_exit:;
|
||||||
|
|
||||||
int textPos=0;
|
int textPos=0;
|
||||||
for (;curBlock!=m_text->end();curBlock=curBlock.next()){
|
for (;curBlock!=m_text->end();curBlock=curBlock.next(),curLine=0){
|
||||||
for (curLine=0;curLine<curBlock.layout()->lineCount();curLine++){
|
for (;curLine<curBlock.layout()->lineCount();curLine++){
|
||||||
if (tmpText=="") textPos= curBlock.layout()->lineAt(curLine).textStart();
|
if (tmpText=="") textPos= curBlock.layout()->lineAt(curLine).textStart();
|
||||||
tmpText+=curBlock.text().mid(curBlock.layout()->lineAt(curLine).textStart(),
|
tmpText+=curBlock.text().mid(curBlock.layout()->lineAt(curLine).textStart(),
|
||||||
curBlock.layout()->lineAt(curLine).textLength()) + "\n";
|
curBlock.layout()->lineAt(curLine).textLength()) + "\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user