summaryrefslogtreecommitdiff
path: root/Userland/Applications
diff options
context:
space:
mode:
authorCody Hein <skmagiik@gmail.com>2022-12-11 18:00:35 -0700
committerSam Atkins <atkinssj@gmail.com>2022-12-12 17:34:35 +0000
commit074ba104c8fc4aea84d83b6fe1b82c83715946a6 (patch)
tree8afca5778793c4b07cf04f1348d2d741ff623800 /Userland/Applications
parent28bb3367cb11bf91aadf9d0b7b88957f7df85339 (diff)
downloadserenity-074ba104c8fc4aea84d83b6fe1b82c83715946a6.zip
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.
Diffstat (limited to 'Userland/Applications')
-rw-r--r--Userland/Applications/PixelPaint/Tools/BrushTool.cpp1
1 files changed, 1 insertions, 0 deletions
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)