Skip to content

Commit

Permalink
Fix complex-shaped Ui::Text::String geometry.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Apr 2, 2024
1 parent bdf4ff3 commit 2385fb3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ui/text/text.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -984,6 +984,8 @@ void String::enumerateLines(
return withElided(true);
}
lineHeight = 0;
last_rBearing = 0;// b->f_rbearing(); (0 for newline)
last_rPadding = 0;// b->f_rpadding(); (0 for newline)

initNextParagraph(i + 1, index);
longWordLine = true;
Expand Down

0 comments on commit 2385fb3

Please sign in to comment.