diff options
author | Mart G <martg_@hotmail.com> | 2022-10-12 15:18:32 +0200 |
---|---|---|
committer | Sam Atkins <atkinssj@gmail.com> | 2022-10-12 15:25:18 +0100 |
commit | c88058cea293b0dc158a7e1599a041af0e014edb (patch) | |
tree | 1b2a2a1f81e2bc312e19f6c9490cc480280dfa60 /Userland/Applications | |
parent | a1d1f7566f9486ae1e02d5576b14e1b6cd1cd0df (diff) | |
download | serenity-c88058cea293b0dc158a7e1599a041af0e014edb.zip |
PixelPaint: Call update after clearing guides
Diffstat (limited to 'Userland/Applications')
-rw-r--r-- | Userland/Applications/PixelPaint/ImageEditor.cpp | 6 | ||||
-rw-r--r-- | Userland/Applications/PixelPaint/ImageEditor.h | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/Userland/Applications/PixelPaint/ImageEditor.cpp b/Userland/Applications/PixelPaint/ImageEditor.cpp index 153f791916..891755f661 100644 --- a/Userland/Applications/PixelPaint/ImageEditor.cpp +++ b/Userland/Applications/PixelPaint/ImageEditor.cpp @@ -512,6 +512,12 @@ void ImageEditor::set_pixel_grid_visibility(bool show_pixel_grid) update(); } +void ImageEditor::clear_guides() +{ + m_guides.clear(); + update(); +} + void ImageEditor::layers_did_change() { if (on_modified_change) diff --git a/Userland/Applications/PixelPaint/ImageEditor.h b/Userland/Applications/PixelPaint/ImageEditor.h index 7635be766b..3a2e9ff937 100644 --- a/Userland/Applications/PixelPaint/ImageEditor.h +++ b/Userland/Applications/PixelPaint/ImageEditor.h @@ -60,7 +60,7 @@ public: { m_guides.remove_first_matching([&](auto& entry) { return &guide == entry.ptr(); }); } - void clear_guides() { m_guides.clear(); } + void clear_guides(); void layers_did_change(); |