Fix strikethrough and underline in Linux (#27267)
Follow up to #26827 and #24721, which introduced a bug in Linux. |before|now| |---|---| ||!| Release Notes: - N/A Co-authored-by: Jason Lee <huacnlee@gmail.com>
This commit is contained in:
parent
0e9e2d70cd
commit
7ced1b7a90
1 changed files with 1 additions and 1 deletions
|
@ -202,7 +202,7 @@ fn paint_line(
|
|||
|
||||
for (glyph_ix, glyph) in run.glyphs.iter().enumerate() {
|
||||
glyph_origin.x += glyph.position.x - prev_glyph_position.x;
|
||||
if glyph_ix == 0 {
|
||||
if glyph_ix == 0 && run_ix == 0 {
|
||||
first_glyph_x = glyph_origin.x;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue