Skip to content

Commit

Permalink
libtxt: move to the next run if the current run ends before the start…
Browse files Browse the repository at this point in the history
… of the line block (flutter#4891)

Fixes flutter#15975
  • Loading branch information
jason-simmons authored Mar 28, 2018
1 parent 6473f1b commit ea7bb0d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions third_party/txt/src/txt/paragraph.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ea7bb0d

Please sign in to comment.