Fix bidi data init.
This commit is contained in:
parent
b8998700c4
commit
f59c13455c
1 changed files with 5 additions and 0 deletions
|
|
@ -524,6 +524,11 @@ void Renderer::initNextParagraph(
|
||||||
} else {
|
} else {
|
||||||
_lineStart = _paragraphStart = (*i)->position();
|
_lineStart = _paragraphStart = (*i)->position();
|
||||||
_lineStartBlock = i - _t->_blocks.cbegin();
|
_lineStartBlock = i - _t->_blocks.cbegin();
|
||||||
|
for (; i != e; ++i) {
|
||||||
|
if ((*i)->type() == TextBlockType::Newline) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
_paragraphLength = ((i == e)
|
_paragraphLength = ((i == e)
|
||||||
? _t->_text.size()
|
? _t->_text.size()
|
||||||
: (*i)->position())
|
: (*i)->position())
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue