mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-23 20:22:58 +03:00
TextItem splitting has been fixed
This commit is contained in:
parent
f01c586926
commit
04745def1e
@ -655,11 +655,11 @@ 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(),curLine=0){
|
for (;curBlock!=m_text->end() || curLine<curBlock.lineCount();curBlock=curBlock.next(), curLine=0, tmpText+='\n'){
|
||||||
for (;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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
tmpText.chop(1);
|
tmpText.chop(1);
|
||||||
|
Loading…
Reference in New Issue
Block a user