diff options
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(); |