1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-27 07:03:14 -04:00

Better handling of invisible underlines/strikethrough

This commit is contained in:
Emil Ernerfeldt
2025-03-30 17:52:48 +02:00
parent 5f01b0dc9d
commit f4fca5a117

View File

@@ -884,7 +884,7 @@ fn add_row_hline(
let (stroke, mut y) = stroke_and_y(glyph);
stroke.round_center_to_pixel(point_scale.pixels_per_point, &mut y);
if stroke == Stroke::NONE {
if stroke.is_empty() {
end_line(line_start.take(), last_right_x);
} else if let Some((existing_stroke, start)) = line_start {
if existing_stroke == stroke && start.y == y {