[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 1007a2e0f9)
This commit is contained in:
Stanislav Motylkov 2018-05-24 20:11:46 +03:00 committed by Joachim Henze
parent 16d7d9d27c
commit a757a3fb04

View file

@ -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;
}