diff options
author | Mustafa Quraish <mustafaq9@gmail.com> | 2021-09-12 22:59:36 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-13 13:43:53 +0200 |
commit | 9097f86e51ce9abd1918719054a24c325e49b9a7 (patch) | |
tree | fb57e07513429425c19ab65b1e08f7bd19f4b617 /Userland/Applications/PixelPaint | |
parent | a5c8d1f7dde0f9df5a2f9f16cbbedeb6e6f6014f (diff) | |
download | serenity-9097f86e51ce9abd1918719054a24c325e49b9a7.zip |
PixelPaint: Call `Layer::did_modify_bitmap()` after drawing Ellipse
Previously, Any potential ImageClients would not have received an
update about the layer bitmap having been modified. This is similar
to what the other shape tools do upon completion.
Diffstat (limited to 'Userland/Applications/PixelPaint')
-rw-r--r-- | Userland/Applications/PixelPaint/EllipseTool.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Applications/PixelPaint/EllipseTool.cpp b/Userland/Applications/PixelPaint/EllipseTool.cpp index 5ace7869b5..4a13efdb0a 100644 --- a/Userland/Applications/PixelPaint/EllipseTool.cpp +++ b/Userland/Applications/PixelPaint/EllipseTool.cpp @@ -76,6 +76,7 @@ void EllipseTool::on_mouseup(Layer* layer, MouseEvent& event) GUI::Painter painter(layer->bitmap()); draw_using(painter, m_ellipse_start_position, m_ellipse_end_position, m_thickness); m_drawing_button = GUI::MouseButton::None; + layer->did_modify_bitmap(); m_editor->update(); m_editor->did_complete_action(); } |