mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-21 18:00:16 +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: 2052796947
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…
Add table
Add a link
Reference in a new issue