1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:47:44 +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

@ -99,6 +99,8 @@ void RectangleSelectTool::on_mouseup(Layer*, MouseEvent& event)
}
m_editor->image().selection().merge(mask, m_merge_mode);
m_editor->did_complete_action(tool_name());
}
void RectangleSelectTool::on_keydown(GUI::KeyEvent& key_event)