summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-02-27 15:41:21 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-02-27 15:41:21 +0300
commit8a98973917d096a589348524200d2c95857e8ddb (patch)
treefdc71419cfbd7c61f567715f21d9200c82298e98
parenta8b08868d72e9ae7defea8caade74e451d7b8d88 (diff)
fixes #2754 (StdMsg: не сохраняется размер области ввода)
-rw-r--r--src/core/stdmsg/src/msgdialog.cpp6
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);