libtxt: move to the next run if the current run ends before the start of the line block (#4891)

Fixes https://github.com/flutter/flutter/issues/15975
This commit is contained in:
Jason Simmons 2018-03-28 14:18:37 -07:00 committed by GitHub
parent 6473f1b106
commit ea7bb0d5fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -239,6 +239,10 @@ bool Paragraph::ComputeLineBreaks() {
StyledRuns::Run run = runs_.GetRun(run_index);
if (run.start >= block_end)
break;
if (run.end < block_start) {
run_index++;
continue;
}
minikin::FontStyle font;
minikin::MinikinPaint paint;