diff options
author | George Hazan <ghazan@miranda.im> | 2017-04-03 12:35:11 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-04-03 12:35:11 +0300 |
commit | 62cb48be341f443dbe356d37fb6d708167898ded (patch) | |
tree | e316cc5d7205ae7337a5f9c5f912a3ccdf350dba /plugins/Scriver/src/msgdialog.cpp | |
parent | fa5c1b20964e669cf50de378d02ed72c5f9d789b (diff) |
fixes #788 (minimize/restore wipes out vertical scroller position)
Diffstat (limited to 'plugins/Scriver/src/msgdialog.cpp')
-rw-r--r-- | plugins/Scriver/src/msgdialog.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Scriver/src/msgdialog.cpp b/plugins/Scriver/src/msgdialog.cpp index 3afb775d89..03099767dd 100644 --- a/plugins/Scriver/src/msgdialog.cpp +++ b/plugins/Scriver/src/msgdialog.cpp @@ -1406,7 +1406,8 @@ INT_PTR CSrmmWindow::DlgProc(UINT msg, WPARAM wParam, LPARAM lParam) if (wParam == SIZE_RESTORED || wParam == SIZE_MAXIMIZED) {
RECT rc;
GetClientRect(m_hwnd, &rc);
- MessageDialogResize(rc.right - rc.left, rc.bottom - rc.top);
+ if (rc.right && rc.bottom)
+ MessageDialogResize(rc.right, rc.bottom);
}
return TRUE;
|