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/dlg/indexfieldscontrol.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/dlg/indexfieldscontrol.cxx')
-rw-r--r-- | dbaccess/source/ui/dlg/indexfieldscontrol.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dbaccess/source/ui/dlg/indexfieldscontrol.cxx b/dbaccess/source/ui/dlg/indexfieldscontrol.cxx index ea8ff0306ba2..1dfa36a4cea4 100644 --- a/dbaccess/source/ui/dlg/indexfieldscontrol.cxx +++ b/dbaccess/source/ui/dlg/indexfieldscontrol.cxx @@ -116,7 +116,7 @@ namespace dbaui void IndexFieldsControl::PaintCell( OutputDevice& _rDev, const tools::Rectangle& _rRect, sal_uInt16 _nColumnId ) const { Point aPos(_rRect.TopLeft()); - aPos.setX( aPos.X() + 1 ); + aPos.AdjustX(1 ); OUString aText = GetRowCellText(m_aSeekRow,_nColumnId); Size TxtSize(GetDataWindow().GetTextWidth(aText), GetDataWindow().GetTextHeight()); |