mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 23:25:20 +00:00
LibGUI: Fix broken text rendering in TextEditor
This patch reintroduces the translation previously mistakenly removed when adding support for different underline-styles. Thanks for reporting the bug, kennethmyhra!
This commit is contained in:
committed by
Linus Groh
parent
9684ae460c
commit
9a28c8dc74
@@ -550,6 +550,7 @@ void TextEditor::paint_event(PaintEvent& event)
|
||||
painter.fill_rect(span_rect, text_attributes.background_color.value());
|
||||
}
|
||||
draw_text(span_rect, text, *font, m_text_alignment, text_attributes);
|
||||
span_rect.translate_by(span_rect.width(), 0);
|
||||
};
|
||||
for (;;) {
|
||||
if (span_index >= document().spans().size()) {
|
||||
|
||||
Reference in New Issue
Block a user