diff --git a/Userland/Libraries/LibGUI/Painter.cpp b/Userland/Libraries/LibGUI/Painter.cpp index fc96d253905..9f9688a94ce 100644 --- a/Userland/Libraries/LibGUI/Painter.cpp +++ b/Userland/Libraries/LibGUI/Painter.cpp @@ -21,9 +21,8 @@ Painter::Painter(Widget& widget) state().font = &widget.font(); auto origin_rect = widget.window_relative_rect(); state().translation = origin_rect.location(); - state().clip_rect = origin_rect; - m_clip_origin = origin_rect; - state().clip_rect.intersect(m_target->rect()); + state().clip_rect = origin_rect.intersected(m_target->rect()); + m_clip_origin = state().clip_rect; } }