summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/viewfun5.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-02-14 10:30:46 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-14 14:17:53 +0100
commit95fab7cbf2f0576d0f728bed8898b7ff769d90e6 (patch)
tree980278716de65d8ce15bef5d76ef085da5a950a1 /sc/source/ui/view/viewfun5.cxx
parent603d1773a2dfea6b347f44ddacef478577098caf (diff)
loplugin:changetoolsgen in sc
Change-Id: Ic24332cac65e665b55b9e1bbaf09ee56066875fd Reviewed-on: https://gerrit.libreoffice.org/49703 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/view/viewfun5.cxx')
-rw-r--r--sc/source/ui/view/viewfun5.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sc/source/ui/view/viewfun5.cxx b/sc/source/ui/view/viewfun5.cxx
index 3f4db0cfba59..3f9489c57950 100644
--- a/sc/source/ui/view/viewfun5.cxx
+++ b/sc/source/ui/view/viewfun5.cxx
@@ -428,10 +428,10 @@ bool ScViewFunc::PasteDataFormat( SotClipboardFormatId nFormatId,
{
Point aInsPos = aPos;
tools::Rectangle aRect(pObj->GetLogicRect());
- aInsPos.X() -= aRect.GetSize().Width() / 2;
- aInsPos.Y() -= aRect.GetSize().Height() / 2;
- if ( aInsPos.X() < 0 ) aInsPos.X() = 0;
- if ( aInsPos.Y() < 0 ) aInsPos.Y() = 0;
+ aInsPos.setX( aInsPos.X() - aRect.GetSize().Width() / 2 );
+ aInsPos.setY( aInsPos.Y() - aRect.GetSize().Height() / 2 );
+ if ( aInsPos.X() < 0 ) aInsPos.setX( 0 );
+ if ( aInsPos.Y() < 0 ) aInsPos.setY( 0 );
aRect.SetPos(aInsPos);
pObj->SetLogicRect(aRect);
@@ -607,8 +607,8 @@ bool ScViewFunc::PasteDataFormat( SotClipboardFormatId nFormatId,
PasteFile( aPos, aFile, bLink );
- aPos.X() += 400;
- aPos.Y() += 400;
+ aPos.setX( aPos.X() + 400 );
+ aPos.setY( aPos.Y() + 400 );
}
bRet = true;
}