From 3b3df40eb92601dcc57b502a91d785b271e35655 Mon Sep 17 00:00:00 2001 From: Marcus Nilsson Date: Fri, 13 Aug 2021 22:04:17 +0200 Subject: [PATCH] PixelPaint: Revert update rect tightening for Selection Tightening of the update rect when firing the marching ants timer unfortunately meant that only finalized selections would be redrawn, and any new selection drawn outside of the update rect would not update. --- Userland/Applications/PixelPaint/Selection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Applications/PixelPaint/Selection.cpp b/Userland/Applications/PixelPaint/Selection.cpp index 7d591c6a84..dc1e9e0838 100644 --- a/Userland/Applications/PixelPaint/Selection.cpp +++ b/Userland/Applications/PixelPaint/Selection.cpp @@ -24,7 +24,7 @@ Selection::Selection(ImageEditor& editor) ++m_marching_ants_offset; m_marching_ants_offset %= (marching_ant_length * 2); if (!is_empty() || m_in_interactive_selection) - m_editor.update(m_editor.image_rect_to_editor_rect(bounding_rect().inflated(10, 10)).to_type()); + m_editor.update(); }); m_marching_ants_timer->start(); }