summaryrefslogtreecommitdiff
path: root/plugins/Scriver/src/utils.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2016-12-07 18:28:15 +0300
committerGeorge Hazan <ghazan@miranda.im>2016-12-07 18:28:15 +0300
commit15f871ebb43e49f96e8f7e2ec95359bc0a05545f (patch)
tree81290687285eb633f5eed29714a9bb9e171676b4 /plugins/Scriver/src/utils.cpp
parentffd40987e231ae7f06193bafebd7fe045c2d60ae (diff)
no need to calculate button width each time
Diffstat (limited to 'plugins/Scriver/src/utils.cpp')
-rw-r--r--plugins/Scriver/src/utils.cpp2
1 files changed, 1 insertions, 1 deletions
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);