mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:37:46 +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
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());
|
painter.fill_rect(span_rect, text_attributes.background_color.value());
|
||||||
}
|
}
|
||||||
draw_text(span_rect, text, *font, m_text_alignment, text_attributes);
|
draw_text(span_rect, text, *font, m_text_alignment, text_attributes);
|
||||||
|
span_rect.translate_by(span_rect.width(), 0);
|
||||||
};
|
};
|
||||||
for (;;) {
|
for (;;) {
|
||||||
if (span_index >= document().spans().size()) {
|
if (span_index >= document().spans().size()) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue