mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 04:23:32 +00:00
[MSPAINT] Improve GetSelectionContents for free-shape selection (#6554)
Follow-up to #6552. There was a bug that the cropped selection image is not the shape of selection. JIRA issue: CORE-19466 - Extend SelectionModel:: DrawSelection for drawing selection flexibly. - Improve SelectionModel:: GetSelectionContents method.
This commit is contained in:
parent
f0e45f07e1
commit
e928b42758
3 changed files with 34 additions and 11 deletions
|
@ -1056,8 +1056,8 @@ LRESULT CMainWindow::OnCommand(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bH
|
|||
HBITMAP hbmSelection = selectionModel.GetSelectionContents();
|
||||
if (hbmSelection)
|
||||
{
|
||||
selectionModel.HideSelection();
|
||||
imageModel.PushImageForUndo(hbmSelection);
|
||||
selectionModel.HideSelection();
|
||||
imageModel.NotifyImageChanged();
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue