Fix bidi data init.

This commit is contained in:
John Preston 2023-11-06 20:29:27 +04:00
parent b8998700c4
commit f59c13455c

View file

@ -524,6 +524,11 @@ void Renderer::initNextParagraph(
} else {
_lineStart = _paragraphStart = (*i)->position();
_lineStartBlock = i - _t->_blocks.cbegin();
for (; i != e; ++i) {
if ((*i)->type() == TextBlockType::Newline) {
break;
}
}
_paragraphLength = ((i == e)
? _t->_text.size()
: (*i)->position())