TextDocumentLayout: Fixed finding paragraph by line index.
This commit is contained in:
parent
b5951f2063
commit
8346431fdd
@ -358,7 +358,7 @@ TextDocumentLayout::_ParagraphLayoutIndexForLineIndex(int32& lineIndex)
|
||||
const ParagraphLayoutInfo& info = fParagraphLayouts.ItemAtFast(i);
|
||||
|
||||
int32 lineCount = info.layout->CountLines();
|
||||
if (lineIndex > lineCount) {
|
||||
if (lineIndex >= lineCount) {
|
||||
lineIndex -= lineCount;
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user