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

PixelPaint: Make selection changes undoable

Using the Rectangle Select Tool will now generate undo/redo commands
like any other tool. :^)
This commit is contained in:
Andreas Kling 2022-08-25 20:58:17 +02:00
parent d571159aeb
commit 49deb936be
4 changed files with 12 additions and 0 deletions

View file

@ -54,4 +54,9 @@ void Selection::remove_client(SelectionClient& client)
m_clients.remove(&client);
}
void Selection::set_mask(Mask mask)
{
m_mask = move(mask);
}
}