summaryrefslogtreecommitdiff
path: root/Userland/Applications
diff options
context:
space:
mode:
authorTim Ledbetter <timledbetter@gmail.com>2022-12-16 23:35:22 +0000
committerAndreas Kling <kling@serenityos.org>2022-12-26 09:40:11 +0100
commitfd3639ecba33637befe4cca2f0cca87711576b76 (patch)
tree539dd49583524b653e2f71306c49a48488bfc384 /Userland/Applications
parent60c9e3bfc65741a783dcdbe5fa3a673bf519f599 (diff)
downloadserenity-fd3639ecba33637befe4cca2f0cca87711576b76.zip
PixelPaint: Erase old active layer boundary when active layer changes
Diffstat (limited to 'Userland/Applications')
-rw-r--r--Userland/Applications/PixelPaint/ImageEditor.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Applications/PixelPaint/ImageEditor.cpp b/Userland/Applications/PixelPaint/ImageEditor.cpp
index afcedbef02..149bed3aa7 100644
--- a/Userland/Applications/PixelPaint/ImageEditor.cpp
+++ b/Userland/Applications/PixelPaint/ImageEditor.cpp
@@ -497,6 +497,8 @@ void ImageEditor::set_active_layer(Layer* layer)
if (on_active_layer_change)
on_active_layer_change({});
}
+ if (m_show_active_layer_boundary)
+ update();
}
ErrorOr<void> ImageEditor::add_new_layer_from_selection()