[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
This commit is contained in:
Stanislav Motylkov 2018-05-24 20:11:46 +03:00 committed by Hermès BÉLUSCA - MAÏTO
parent f7c01906e7
commit 1007a2e0f9

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