summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/Scriver/src/utils.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/Scriver/src/utils.cpp b/plugins/Scriver/src/utils.cpp
index 949dcbd665..46d2874758 100644
--- a/plugins/Scriver/src/utils.cpp
+++ b/plugins/Scriver/src/utils.cpp
@@ -444,8 +444,7 @@ void SetButtonsPos(HWND hwndDlg, bool bShow)
ScreenToClient(hwndDlg, &pt);
pt.y -= 20;
- GetClientRect(hwndDlg, &rc);
- int iLeftX = 2, iRightX = rc.right - 2;
+ int iLeftX = 2, iRightX = rc.right - rc.left - 2;
int iGap = db_get_b(NULL, SRMMMOD, "ButtonsBarGap", 1);
CustomButtonData *cbd;