From 29690fabc4673d1651a518f4f78e3b17493c7a7b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 7 Sep 2017 19:16:37 +0300 Subject: fixes #919 (Toolbar isn't shown after disabling) --- plugins/TopToolBar/src/toolbarwnd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') 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; } -- cgit v1.2.3