From 14f574fcf1bdc6059fb2ee3994578decc03e40a3 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 30 May 2016 10:53:08 +0000 Subject: - fixes #1061 (Not all TabSRMM buttons working after language change) - version bump before release git-svn-id: http://svn.miranda-ng.org/main/trunk@16889 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/TSButton.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'plugins/TabSRMM/src/TSButton.cpp') diff --git a/plugins/TabSRMM/src/TSButton.cpp b/plugins/TabSRMM/src/TSButton.cpp index cc9cc58f25..603bdceb34 100644 --- a/plugins/TabSRMM/src/TSButton.cpp +++ b/plugins/TabSRMM/src/TSButton.cpp @@ -328,18 +328,18 @@ static LRESULT CALLBACK TSButtonWndProc(HWND hwndDlg, UINT msg, WPARAM wParam, L return 0; case WM_PAINT: - { PAINTSTRUCT ps; - HDC hdcPaint = BeginPaint(hwndDlg, &ps); - if (hdcPaint) { - if (bct->sitem) - bct->sitem->RenderThis(hdcPaint); - else - PaintWorker(bct, hdcPaint); - EndPaint(hwndDlg, &ps); + { + HDC hdcPaint = BeginPaint(hwndDlg, &ps); + if (hdcPaint) { + if (bct->sitem) + bct->sitem->RenderThis(hdcPaint); + else + PaintWorker(bct, hdcPaint); + EndPaint(hwndDlg, &ps); + } } - } - return 0; + return 0; case BM_SETIMAGE: if (wParam == IMAGE_ICON) { -- cgit v1.2.3