diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-16 11:33:06 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-16 19:50:35 +0100 |
commit | eb5563e7e636a9856d4f1cc23d00a21193b9d0cc (patch) | |
tree | 23f2d0f58872a42ab4cbc15597211794b193c62b /canvas | |
parent | 11fab5aeaaa72012c63b2c812656a932ef0debf9 (diff) |
Revert "loplugin:changetoolsgen in canvas..cui" and reapply
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 f841dada1a5018897cce29ccf972da33ece4738c.
Change-Id: Iff19e1fc99812c086b0a39b71a3f67b98e2f9c8f
Reviewed-on: https://gerrit.libreoffice.org/49841
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'canvas')
-rw-r--r-- | canvas/source/vcl/canvashelper_texturefill.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/canvas/source/vcl/canvashelper_texturefill.cxx b/canvas/source/vcl/canvashelper_texturefill.cxx index 892d6d781e8f..fcec72c0b475 100644 --- a/canvas/source/vcl/canvashelper_texturefill.cxx +++ b/canvas/source/vcl/canvashelper_texturefill.cxx @@ -90,8 +90,8 @@ namespace vclcanvas rTileSize, &rAttr ); - aCurrPos.setX( aCurrPos.X() + rNextTileX.Width() ); - aCurrPos.setY( aCurrPos.Y() + rNextTileX.Height() ); + aCurrPos.AdjustX(rNextTileX.Width() ); + aCurrPos.AdjustY(rNextTileX.Height() ); } } |