From 15f871ebb43e49f96e8f7e2ec95359bc0a05545f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 7 Dec 2016 18:28:15 +0300 Subject: no need to calculate button width each time --- plugins/Scriver/src/utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/Scriver/src/utils.cpp') diff --git a/plugins/Scriver/src/utils.cpp b/plugins/Scriver/src/utils.cpp index 2bf9c3c699..70e6198234 100644 --- a/plugins/Scriver/src/utils.cpp +++ b/plugins/Scriver/src/utils.cpp @@ -454,7 +454,7 @@ void SetButtonsPos(HWND hwndDlg) if (hwndButton == NULL) continue; - int width = iGap + ((cbd->m_dwArrowCID) ? 34 : 22); + int width = iGap + cbd->m_iButtonWidth; if (cbd->m_bRSided) { iRightX -= width; hdwp = DeferWindowPos(hdwp, hwndButton, NULL, iRightX, pt.y, 0, 0, SWP_NOZORDER | SWP_NOSIZE); -- cgit v1.2.3