From ac92ec1a55354e57b8cc6d4fd77aa2e75a896242 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 6 Mar 2017 12:40:15 +0300 Subject: fixes #729 ([Tabsrmm] "img" insert button no longer works on a toggle) --- src/mir_app/src/srmm_toolbar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mir_app') diff --git a/src/mir_app/src/srmm_toolbar.cpp b/src/mir_app/src/srmm_toolbar.cpp index b94c175ef0..2531875b07 100644 --- a/src/mir_app/src/srmm_toolbar.cpp +++ b/src/mir_app/src/srmm_toolbar.cpp @@ -207,7 +207,7 @@ MIR_APP_DLL(int) Srmm_SetButtonState(MCONTACT hContact, BBButton *bbdi) ShowWindow(hwndBtn, (bbdi->bbbFlags & BBSF_HIDDEN) ? SW_HIDE : SW_SHOW); EnableWindow(hwndBtn, !(bbdi->bbbFlags & BBSF_DISABLED)); Button_SetCheck(hwndBtn, (bbdi->bbbFlags & BBSF_PUSHED) != 0); - Button_SetCheck(hwndBtn, (bbdi->bbbFlags & BBSF_RELEASED) != 0); + Button_SetCheck(hwndBtn, (bbdi->bbbFlags & BBSF_RELEASED) == 0); } return 0; } -- cgit v1.2.3