mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
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:
parent
6473f1b106
commit
ea7bb0d5fd
4
third_party/txt/src/txt/paragraph.cc
vendored
4
third_party/txt/src/txt/paragraph.cc
vendored
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user