Skip to content

Commit a757a3f

Browse files
binarymasterJoachimHenze
authored andcommitted
[0.4.9] cherry-pick [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 (cherry picked from commit 1007a2e)
1 parent 16d7d9d commit a757a3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/applications/mspaint/imgarea.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,8 @@ LRESULT CImgAreaWindow::OnRButtonUp(UINT nMsg, WPARAM wParam, LPARAM lParam, BOO
291291
}
292292
SendMessage(hStatusBar, SB_SETTEXT, 2, (LPARAM) "");
293293
}
294-
ReleaseCapture();
295294
drawing = FALSE;
295+
ReleaseCapture();
296296
return 0;
297297
}
298298

0 commit comments

Comments
 (0)