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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user