From 7ca9259ffda5e64bd4844965bc4b276b2e576e2c Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 13 May 2020 19:49:11 +0200 Subject: [PATCH] PaintBrush: Don't paint over the nice GUI::Frame around ImageEditor --- Applications/PaintBrush/ImageEditor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Applications/PaintBrush/ImageEditor.cpp b/Applications/PaintBrush/ImageEditor.cpp index 87f9aab57d..da6726fdd6 100644 --- a/Applications/PaintBrush/ImageEditor.cpp +++ b/Applications/PaintBrush/ImageEditor.cpp @@ -50,7 +50,9 @@ void ImageEditor::paint_event(GUI::PaintEvent& event) GUI::Painter painter(*this); painter.add_clip_rect(event.rect()); + painter.add_clip_rect(frame_inner_rect()); + painter.translate(frame_thickness(), frame_thickness()); painter.fill_rect_with_checkerboard(rect(), { 8, 8 }, palette().base().darkened(0.9), palette().base()); if (m_image) {