From 62cb48be341f443dbe356d37fb6d708167898ded Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 3 Apr 2017 12:35:11 +0300 Subject: fixes #788 (minimize/restore wipes out vertical scroller position) --- plugins/Scriver/src/chat_window.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins/Scriver/src/chat_window.cpp') diff --git a/plugins/Scriver/src/chat_window.cpp b/plugins/Scriver/src/chat_window.cpp index 02ce2d60ab..288fbdf6ff 100644 --- a/plugins/Scriver/src/chat_window.cpp +++ b/plugins/Scriver/src/chat_window.cpp @@ -916,7 +916,8 @@ INT_PTR CChatRoomDlg::DlgProc(UINT uMsg, WPARAM wParam, LPARAM lParam) if (wParam == SIZE_RESTORED || wParam == SIZE_MAXIMIZED) { GetClientRect(m_hwnd, &rc); - MessageDialogResize(rc.right - rc.left, rc.bottom - rc.top); + if (rc.right && rc.bottom) + MessageDialogResize(rc.right, rc.bottom); } break; -- cgit v1.2.3