summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);