mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:17:44 +00:00
PixelPaint: Add menu items for Select All and Clear Selection
We also need to update the image editor when clearing selection otherwise the last state of the selection will be displayed until an update happens.
This commit is contained in:
parent
472721b774
commit
db99e0917c
3 changed files with 20 additions and 1 deletions
|
@ -56,4 +56,10 @@ void Selection::draw_marching_ants(Gfx::Painter& painter, Gfx::IntRect const& re
|
|||
draw_pixel(rect.left(), y);
|
||||
}
|
||||
|
||||
void Selection::clear()
|
||||
{
|
||||
m_rect = {};
|
||||
m_editor.update();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue