From c88058cea293b0dc158a7e1599a041af0e014edb Mon Sep 17 00:00:00 2001 From: Mart G Date: Wed, 12 Oct 2022 15:18:32 +0200 Subject: [PATCH] PixelPaint: Call update after clearing guides --- Userland/Applications/PixelPaint/ImageEditor.cpp | 6 ++++++ Userland/Applications/PixelPaint/ImageEditor.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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();