summaryrefslogtreecommitdiff
path: root/sfx2/source/sidebar/TitleBar.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-02-16 09:20:09 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-16 13:24:23 +0100
commit3987c2b0e8477152e4f85ce7fa1b70eb38e171f7 (patch)
treeb6973e97085fcb0a7457828763faddbfc703b2a8 /sfx2/source/sidebar/TitleBar.cxx
parent4beed2ba7335fdb211aca7f70a144ffecf90a781 (diff)
Revert "loplugin:changetoolsgen in sfx2" 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 c82802a9ee3514d0b98fbb3783abbc17ec02c3b6. Change-Id: I44a5316ebd3d0bde6bd75ad24e9a4406cd8e8db0 Reviewed-on: https://gerrit.libreoffice.org/49836 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/sidebar/TitleBar.cxx')
-rw-r--r--sfx2/source/sidebar/TitleBar.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/sidebar/TitleBar.cxx b/sfx2/source/sidebar/TitleBar.cxx
index 74de65d4b9bc..3d6f7ad5a5d1 100644
--- a/sfx2/source/sidebar/TitleBar.cxx
+++ b/sfx2/source/sidebar/TitleBar.cxx
@@ -128,7 +128,7 @@ void TitleBar::PaintTitle(vcl::RenderContext& rRenderContext, const tools::Recta
rRenderContext.DrawImage(Point(aTitleBox.Left() + gnLeftIconSpace,
aTitleBox.Top() + (aTitleBox.GetHeight() - maIcon.GetSizePixel().Height()) / 2),
maIcon);
- aTitleBox.SetLeft( aTitleBox.Left() + gnLeftIconSpace + maIcon.GetSizePixel().Width() + gnRightIconSpace );
+ aTitleBox.AdjustLeft(gnLeftIconSpace + maIcon.GetSizePixel().Width() + gnRightIconSpace );
}
vcl::Font aFont(rRenderContext.GetFont());