From 074ba104c8fc4aea84d83b6fe1b82c83715946a6 Mon Sep 17 00:00:00 2001 From: Cody Hein Date: Sun, 11 Dec 2022 18:00:35 -0700 Subject: [PATCH] PixelPaint: Single-clicking the BrushTool now adds to undo_stack Simple change, prior to this BrushTool and EraseTool would not have update the undo_stack for the ImageEditor unless you were clicking and dragging. --- Userland/Applications/PixelPaint/Tools/BrushTool.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Applications/PixelPaint/Tools/BrushTool.cpp b/Userland/Applications/PixelPaint/Tools/BrushTool.cpp index d1c28712f9..a1337f36d8 100644 --- a/Userland/Applications/PixelPaint/Tools/BrushTool.cpp +++ b/Userland/Applications/PixelPaint/Tools/BrushTool.cpp @@ -51,6 +51,7 @@ void BrushTool::on_mousedown(Layer* layer, MouseEvent& event) layer->did_modify_bitmap(Gfx::IntRect::centered_on(layer_event.position(), Gfx::IntSize { m_size * 2, m_size * 2 })); m_last_position = layer_event.position(); m_has_clicked = true; + m_was_drawing = true; } void BrushTool::on_mousemove(Layer* layer, MouseEvent& event)