From 20527969471f4b84e8dbbe663ba56073a42afc0b Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 15 Jun 2021 11:50:02 +0200 Subject: [PATCH] PixelPaint: Clear selection when opening a new image --- Userland/Applications/PixelPaint/ImageEditor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Applications/PixelPaint/ImageEditor.cpp b/Userland/Applications/PixelPaint/ImageEditor.cpp index cf4b50e765..96f4559a9b 100644 --- a/Userland/Applications/PixelPaint/ImageEditor.cpp +++ b/Userland/Applications/PixelPaint/ImageEditor.cpp @@ -36,6 +36,7 @@ void ImageEditor::set_image(RefPtr image) if (m_image) m_image->remove_client(*this); + m_selection.clear(); m_image = move(image); m_active_layer = nullptr; m_undo_stack = make();