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
commit 49deb936be
Notes: sideshowbarker 2024-07-17 23:07:41 +09:00
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)