libtxt: move to the next run if the current run ends before the start of the line block (flutter/engine#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 a3666e8280
commit f6a5a300d5

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;