diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-21 15:56:58 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-22 20:18:57 +0100 |
commit | 4a8968039a2e1d9e7aee10433ced1f59c0392d7a (patch) | |
tree | 7074b5b4a94b5d509487872b8201bc5872dc107e /vcl/backendtest/VisualBackendTest.cxx | |
parent | 1d7f96a324a4c2ab82a04513c6a38dc31fd061fa (diff) |
loplugin:changetoolsgen in vcl
Change-Id: I0fc68cf51fb23ed9bb86a5087e8247c81b024494
Reviewed-on: https://gerrit.libreoffice.org/50107
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/backendtest/VisualBackendTest.cxx')
-rw-r--r-- | vcl/backendtest/VisualBackendTest.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/backendtest/VisualBackendTest.cxx b/vcl/backendtest/VisualBackendTest.cxx index ad72868545a5..a7126aa5d89b 100644 --- a/vcl/backendtest/VisualBackendTest.cxx +++ b/vcl/backendtest/VisualBackendTest.cxx @@ -59,8 +59,8 @@ void drawBitmapCentered(tools::Rectangle const & rRect, Bitmap aBitmap, vcl::Ren Point aPoint(rRect.TopLeft()); - aPoint.X() += (nWidth - aBitmapSize.Width()) / 2; - aPoint.Y() += (nHeight - aBitmapSize.Height()) / 2; + aPoint.AdjustX((nWidth - aBitmapSize.Width()) / 2 ); + aPoint.AdjustY((nHeight - aBitmapSize.Height()) / 2 ); rRenderContext.DrawBitmap(aPoint, aBitmap); } |