diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-16 12:48:27 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-16 15:14:05 +0100 |
commit | 413c7b426543e71f4865c858b5b4ca62b48573d3 (patch) | |
tree | ce0c71f47ffab017ba13b50263e06e36556fc5e0 /dbaccess/source/ui/browser/sbagrid.cxx | |
parent | 1d180f48bc61444c610c35083e35745d38c6cce2 (diff) |
Revert "loplugin:changetoolsgen in dbaccess..desktop" and reapply plugin
because I
(a) forgot to insert parentheses which changes the meaning of some expressions and
(b) I now use the AdjustFoo calls when changing unary operations, which reads much better
This reverts commit a9ca38bdf7ff9d15529b5903e640987fc14c0fa7.
Change-Id: I662ef2f1100a06a68decb2c71975fbc61aeaa47d
Reviewed-on: https://gerrit.libreoffice.org/49847
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess/source/ui/browser/sbagrid.cxx')
-rw-r--r-- | dbaccess/source/ui/browser/sbagrid.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dbaccess/source/ui/browser/sbagrid.cxx b/dbaccess/source/ui/browser/sbagrid.cxx index cf20acabfa4f..f2ffb3947489 100644 --- a/dbaccess/source/ui/browser/sbagrid.cxx +++ b/dbaccess/source/ui/browser/sbagrid.cxx @@ -600,8 +600,8 @@ void SbaGridHeader::ImplStartColumnDrag(sal_Int8 _nAction, const Point& _rMouseP if (HEADERBAR_ITEM_NOTFOUND != nId) { tools::Rectangle aColRect = GetItemRect(nId); - aColRect.SetLeft( aColRect.Left() + nId ? 3 : 0 ); // the handle col (nId == 0) does not have a left margin for resizing - aColRect.SetRight( aColRect.Right() - 3 ); + aColRect.AdjustLeft(nId ? 3 : 0 ); // the handle col (nId == 0) does not have a left margin for resizing + aColRect.AdjustRight( -3 ); bResizingCol = !aColRect.IsInside(_rMousePos); } if (!bResizingCol) |