summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdograf.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-02-20 11:03:20 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-21 06:04:19 +0100
commit924c0e34fdc36cd44100dafc2c68656ce32374e6 (patch)
tree05548e06d476b1244abb3ef83013514c7f991b3e /svx/source/svdraw/svdograf.cxx
parentfd20935bb819cb24e71f4f91b97149c35bc5987d (diff)
loplugin:changetoolsgen in svx
and fix the regex in the plugin for matching += operator Change-Id: I26b3e3fac1d4ef3e756cc9431b983b5f27ee76d6 Reviewed-on: https://gerrit.libreoffice.org/50037 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/svdraw/svdograf.cxx')
-rw-r--r--svx/source/svdraw/svdograf.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/svx/source/svdraw/svdograf.cxx b/svx/source/svdraw/svdograf.cxx
index ceac4a34628b..0027053721ea 100644
--- a/svx/source/svdraw/svdograf.cxx
+++ b/svx/source/svdraw/svdograf.cxx
@@ -1309,13 +1309,13 @@ void SdrGrafObj::AdjustToMaxRect( const tools::Rectangle& rMaxRect, bool bShrink
// Scale graphic to page size
if ( fGrfWH < fWinWH )
{
- aSize.Width() = static_cast<long>(aMaxSize.Height() * fGrfWH);
- aSize.Height()= aMaxSize.Height();
+ aSize.setWidth( static_cast<long>(aMaxSize.Height() * fGrfWH) );
+ aSize.setHeight( aMaxSize.Height() );
}
else if ( fGrfWH > 0.F )
{
- aSize.Width() = aMaxSize.Width();
- aSize.Height()= static_cast<long>(aMaxSize.Width() / fGrfWH);
+ aSize.setWidth( aMaxSize.Width() );
+ aSize.setHeight( static_cast<long>(aMaxSize.Width() / fGrfWH) );
}
aPos = rMaxRect.Center();
@@ -1324,8 +1324,8 @@ void SdrGrafObj::AdjustToMaxRect( const tools::Rectangle& rMaxRect, bool bShrink
if( bShrinkOnly )
aPos = maRect.TopLeft();
- aPos.X() -= aSize.Width() / 2;
- aPos.Y() -= aSize.Height() / 2;
+ aPos.AdjustX( -(aSize.Width() / 2) );
+ aPos.AdjustY( -(aSize.Height() / 2) );
SetLogicRect( tools::Rectangle( aPos, aSize ) );
}
}