mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +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:
parent
9684ae460c
commit
9a28c8dc74
Notes:
sideshowbarker
2024-07-17 20:21:56 +09:00
Author: https://github.com/TobyAsE Commit: https://github.com/SerenityOS/serenity/commit/9a28c8dc748 Pull-request: https://github.com/SerenityOS/serenity/pull/12098
1 changed files with 1 additions and 0 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue