Flush pending underline when we are at the end of the line

This commit is contained in:
Antonio Scandurra 2021-09-07 11:04:44 +02:00
parent cf68ad3a82
commit 5b71901912

View file

@ -315,6 +315,7 @@ impl Line {
color,
});
}
}
if let Some(underline_start) = underline_start.take() {
let line_end = origin + baseline_offset + vec2f(self.layout.width, 0.);
@ -327,7 +328,6 @@ impl Line {
});
}
}
}
pub fn paint_wrapped(
&self,