summaryrefslogtreecommitdiff
path: root/sfx2/source/view/lokcharthelper.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-02-14 15:20:27 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-15 07:27:43 +0100
commitc82802a9ee3514d0b98fbb3783abbc17ec02c3b6 (patch)
tree0f942fe36637686fcfe61d8c1ded77b2aeadbc37 /sfx2/source/view/lokcharthelper.cxx
parent45a4e70484e7d90dab07a677914ada2d948b415c (diff)
loplugin:changetoolsgen in sfx2
Change-Id: I34a007711e2ffc70bdee6823ea9b85f60f819e6e Reviewed-on: https://gerrit.libreoffice.org/49727 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/view/lokcharthelper.cxx')
-rw-r--r--sfx2/source/view/lokcharthelper.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/source/view/lokcharthelper.cxx b/sfx2/source/view/lokcharthelper.cxx
index dc82d2ffe4db..b3a326bfbc0b 100644
--- a/sfx2/source/view/lokcharthelper.cxx
+++ b/sfx2/source/view/lokcharthelper.cxx
@@ -140,11 +140,11 @@ tools::Rectangle LokChartHelper::GetChartBoundingBox()
double fXScale( aCWMapMode.GetScaleX() );
double fYScale( aCWMapMode.GetScaleY() );
Point aOffset = pWindow->GetOffsetPixelFrom(*pRootWin);
- aOffset.X() *= (TWIPS_PER_PIXEL / fXScale);
- aOffset.Y() *= (TWIPS_PER_PIXEL / fYScale);
+ aOffset.setX( aOffset.X() * (TWIPS_PER_PIXEL / fXScale) );
+ aOffset.setY( aOffset.Y() * (TWIPS_PER_PIXEL / fYScale) );
Size aSize = pWindow->GetSizePixel();
- aSize.Width() *= (TWIPS_PER_PIXEL / fXScale);
- aSize.Height() *= (TWIPS_PER_PIXEL / fYScale);
+ aSize.setWidth( aSize.Width() * (TWIPS_PER_PIXEL / fXScale) );
+ aSize.setHeight( aSize.Height() * (TWIPS_PER_PIXEL / fYScale) );
aBBox = tools::Rectangle(aOffset, aSize);
}
}