mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 13:34:53 +00:00
[MSPAINT] imageSaved = FALSE after image size change
...and redraw canvas after image resizing is canceled. CORE-18867
This commit is contained in:
parent
fc5311aaf2
commit
132f482de2
|
@ -596,6 +596,8 @@ LRESULT CCanvasWindow::OnLRButtonUp(BOOL bLeftButton, UINT nMsg, WPARAM wParam,
|
||||||
}
|
}
|
||||||
::SetRectEmpty(&m_rcNew);
|
::SetRectEmpty(&m_rcNew);
|
||||||
|
|
||||||
|
imageSaved = FALSE;
|
||||||
|
|
||||||
m_whereHit = HIT_NONE;
|
m_whereHit = HIT_NONE;
|
||||||
toolsModel.resetTool(); // resets the point-buffer of the polygon and bezier functions
|
toolsModel.resetTool(); // resets the point-buffer of the polygon and bezier functions
|
||||||
Update(NULL);
|
Update(NULL);
|
||||||
|
@ -668,6 +670,7 @@ LRESULT CCanvasWindow::OnKeyDown(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL&
|
||||||
// Cancel dragging
|
// Cancel dragging
|
||||||
m_whereHit = HIT_NONE;
|
m_whereHit = HIT_NONE;
|
||||||
::ReleaseCapture();
|
::ReleaseCapture();
|
||||||
|
Invalidate(TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue