未验证 提交 ea7bb0d5 编写于 作者: J Jason Simmons 提交者: GitHub

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
上级 6473f1b1
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册