From 1007a2e0f95ac068ae3dfcabf0e4ab47ac577ca7 Mon Sep 17 00:00:00 2001 From: Stanislav Motylkov Date: Thu, 24 May 2018 20:11:46 +0300 Subject: [PATCH] [MSPAINT] Fix call sequence in OnRButtonUp This fixes unexpected undo action when zooming out with right mouse click. The call sequence in OnLButtonUp is already correct. CORE-14539 --- base/applications/mspaint/imgarea.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/applications/mspaint/imgarea.cpp b/base/applications/mspaint/imgarea.cpp index 433fc7b04aa..74bf84414f3 100644 --- a/base/applications/mspaint/imgarea.cpp +++ b/base/applications/mspaint/imgarea.cpp @@ -291,8 +291,8 @@ LRESULT CImgAreaWindow::OnRButtonUp(UINT nMsg, WPARAM wParam, LPARAM lParam, BOO } SendMessage(hStatusBar, SB_SETTEXT, 2, (LPARAM) ""); } - ReleaseCapture(); drawing = FALSE; + ReleaseCapture(); return 0; } -- 2.17.1