summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/viewfun5.cxx
diff options
context:
space:
mode:
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;
}