1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:57:35 +00:00

PixelPaint: Clear selection when opening a new image

This commit is contained in:
Andreas Kling 2021-06-15 11:50:02 +02:00
parent 91100f2f94
commit 2052796947

View file

@ -36,6 +36,7 @@ void ImageEditor::set_image(RefPtr<Image> image)
if (m_image)
m_image->remove_client(*this);
m_selection.clear();
m_image = move(image);
m_active_layer = nullptr;
m_undo_stack = make<GUI::UndoStack>();