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