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:
Tobias Christiansen 2022-01-23 23:01:23 +01:00 committed by Linus Groh
parent 9684ae460c
commit 9a28c8dc74
Notes: sideshowbarker 2024-07-17 20:21:56 +09:00

View file

@ -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()) {