diff options
Diffstat (limited to 'Libraries')
-rw-r--r-- | Libraries/LibGUI/TextEditor.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Libraries/LibGUI/TextEditor.cpp b/Libraries/LibGUI/TextEditor.cpp index ffc0cc6d15..746117446d 100644 --- a/Libraries/LibGUI/TextEditor.cpp +++ b/Libraries/LibGUI/TextEditor.cpp @@ -404,6 +404,7 @@ void TextEditor::paint_event(PaintEvent& event) }; if (m_ruler_visible) text_clip_rect.move_by(-ruler_width(), 0); + text_clip_rect.move_by(horizontal_scrollbar().value(), vertical_scrollbar().value()); painter.add_clip_rect(text_clip_rect); for (size_t line_index = first_visible_line; line_index <= last_visible_line; ++line_index) { |