summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/generic_msghandlers.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-10-04 16:10:46 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-10-04 16:10:46 +0300
commit375ee2dde56a86f64fa44b83ede37bcb11c47cb3 (patch)
tree0daf2e63ad25a34bf3ecf263f78efa75bcd6719f /plugins/TabSRMM/src/generic_msghandlers.cpp
parentd352f5a7dd20db6c0cf00c6b0c2a694edd04f955 (diff)
tabSRMM: avatar resizer optimization
Diffstat (limited to 'plugins/TabSRMM/src/generic_msghandlers.cpp')
-rw-r--r--plugins/TabSRMM/src/generic_msghandlers.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/TabSRMM/src/generic_msghandlers.cpp b/plugins/TabSRMM/src/generic_msghandlers.cpp
index 16f49c55ac..af491bd4b0 100644
--- a/plugins/TabSRMM/src/generic_msghandlers.cpp
+++ b/plugins/TabSRMM/src/generic_msghandlers.cpp
@@ -635,8 +635,8 @@ void CMsgDialog::DM_RecalcPictureSize()
if (hbm) {
BITMAP bminfo;
GetObject(hbm, sizeof(bminfo), &bminfo);
- CalcDynamicAvatarSize(&bminfo);
- Resize();
+ if (CalcDynamicAvatarSize(&bminfo))
+ Resize();
}
else m_pic.cy = m_pic.cx = 60;
}