diff options
author | George Hazan <ghazan@miranda.im> | 2021-02-27 15:41:21 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-02-27 15:41:21 +0300 |
commit | 8a98973917d096a589348524200d2c95857e8ddb (patch) | |
tree | fdc71419cfbd7c61f567715f21d9200c82298e98 | |
parent | a8b08868d72e9ae7defea8caade74e451d7b8d88 (diff) |
fixes #2754 (StdMsg: не сохраняется размер области ввода)
-rw-r--r-- | src/core/stdmsg/src/msgdialog.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/stdmsg/src/msgdialog.cpp b/src/core/stdmsg/src/msgdialog.cpp index 74433f6cde..db94642259 100644 --- a/src/core/stdmsg/src/msgdialog.cpp +++ b/src/core/stdmsg/src/msgdialog.cpp @@ -1371,6 +1371,9 @@ void CMsgDialog::OnOptionsApplied(bool bUpdateAvatar) void CMsgDialog::onSplitterX(CSplitter *pSplitter)
{
+ if (!m_bInitialized)
+ return;
+
RECT rc;
GetClientRect(m_hwnd, &rc);
@@ -1384,6 +1387,9 @@ void CMsgDialog::onSplitterX(CSplitter *pSplitter) void CMsgDialog::onSplitterY(CSplitter *pSplitter)
{
+ if (!m_bInitialized)
+ return;
+
RECT rc;
GetClientRect(m_hwnd, &rc);
|