mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-23 08:00:20 +00:00
PixelPaint: Clear selection when opening a new image
This commit is contained in:
parent
91100f2f94
commit
2052796947
Notes:
sideshowbarker
2024-07-18 12:13:50 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/20527969471
1 changed files with 1 additions and 0 deletions
|
@ -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>();
|
||||
|
|
Loading…
Reference in a new issue