summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-09-07 19:16:37 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-09-07 19:16:37 +0300
commit29690fabc4673d1651a518f4f78e3b17493c7a7b (patch)
treecc9afe00fee8edb1327fd3d6291a62794a98dacd /plugins
parent7ccdc4cbc0d9b2809ffe45fb9ab15551ae3df269 (diff)
fixes #919 (Toolbar isn't shown after disabling)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/TopToolBar/src/toolbarwnd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/TopToolBar/src/toolbarwnd.cpp b/plugins/TopToolBar/src/toolbarwnd.cpp
index f02645e039..3c22a12202 100644
--- a/plugins/TopToolBar/src/toolbarwnd.cpp
+++ b/plugins/TopToolBar/src/toolbarwnd.cpp
@@ -208,7 +208,7 @@ LRESULT CALLBACK TopToolBarProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPara
if (g_ctrl->bAutoSize) {
int Height = ArrangeButtons();
INT_PTR frameopt = CallService(MS_CLIST_FRAMES_GETFRAMEOPTIONS, MAKEWPARAM(FO_HEIGHT, g_ctrl->hFrame), 0);
- if (Height != frameopt) {
+ if (Height != 0 && Height != frameopt) {
CallService(MS_CLIST_FRAMES_SETFRAMEOPTIONS, MAKEWPARAM(FO_HEIGHT, g_ctrl->hFrame), Height);
bResize = TRUE;
}