mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 14:20:04 -04:00
Better handling of invisible underlines/strikethrough
This commit is contained in:
@@ -884,7 +884,7 @@ fn add_row_hline(
|
|||||||
let (stroke, mut y) = stroke_and_y(glyph);
|
let (stroke, mut y) = stroke_and_y(glyph);
|
||||||
stroke.round_center_to_pixel(point_scale.pixels_per_point, &mut y);
|
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);
|
end_line(line_start.take(), last_right_x);
|
||||||
} else if let Some((existing_stroke, start)) = line_start {
|
} else if let Some((existing_stroke, start)) = line_start {
|
||||||
if existing_stroke == stroke && start.y == y {
|
if existing_stroke == stroke && start.y == y {
|
||||||
|
|||||||
Reference in New Issue
Block a user