diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-05-17 09:17:02 +0200 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2013-05-20 18:59:38 +0000 |
commit | 76fbba8259b3daeb0543cca15c84d5df281e687c (patch) | |
tree | 0b897f4e70f5397789c6de9a02185744e3ca69b6 /sw/source/core/draw | |
parent | bd888a331b6eafbdf3225e15e47c1190bd5bd6b7 (diff) |
sw: convert some usage of Point::X/Y to Point::set/getX/Y, take two
69c52bc5b7973a2e414209470f5bf9b66dcc4f30 had some typos, and got
reverted in 78123a504b5215d061935d7b2771ba51e68cae0e, this does the
same, except those typos corrected, so vertical layout is still OK.
Change-Id: I79fe610e4cc8bbbddbd8415198d6309a93f4ba18
Reviewed-on: https://gerrit.libreoffice.org/3929
Reviewed-by: Miklos Vajna <vmiklos@suse.cz>
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'sw/source/core/draw')
-rw-r--r-- | sw/source/core/draw/dflyobj.cxx | 4 | ||||
-rw-r--r-- | sw/source/core/draw/dpage.cxx | 4 | ||||
-rw-r--r-- | sw/source/core/draw/dview.cxx | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/core/draw/dflyobj.cxx b/sw/source/core/draw/dflyobj.cxx index baccb3094a54..ab9c5bc0cb13 100644 --- a/sw/source/core/draw/dflyobj.cxx +++ b/sw/source/core/draw/dflyobj.cxx @@ -879,8 +879,8 @@ SdrObject* SwVirtFlyDrawObj::CheckMacroHit( const SdrObjMacroHitRec& rRec ) cons if( aRect.IsInside( rRec.aPos ) ) { - aRect.Pos().X() += rRec.nTol; - aRect.Pos().Y() += rRec.nTol; + aRect.Pos().setX(aRect.Pos().getX() + rRec.nTol); + aRect.Pos().setY(aRect.Pos().getY() + rRec.nTol); aRect.SSize().Height()-= 2 * rRec.nTol; aRect.SSize().Width() -= 2 * rRec.nTol; diff --git a/sw/source/core/draw/dpage.cxx b/sw/source/core/draw/dpage.cxx index cee0e0dabaa2..ff1fcde712a6 100644 --- a/sw/source/core/draw/dpage.cxx +++ b/sw/source/core/draw/dpage.cxx @@ -167,8 +167,8 @@ sal_Bool SwDPage::RequestHelp( Window* pWindow, SdrView* pView, // without MapMode-Offset, without Offset, w ... !!!!! aPt = pWindow->LogicToPixel( aPt, MapMode( MAP_TWIP ) ); - ((( sTxt += '?' ) += OUString::number( aPt.X() )) - += ',' ) += OUString::number( aPt.Y() ); + ((( sTxt += '?' ) += OUString::number( aPt.getX() )) + += ',' ) += OUString::number( aPt.getY() ); } } diff --git a/sw/source/core/draw/dview.cxx b/sw/source/core/draw/dview.cxx index 694f91521117..6cbd572ee37a 100644 --- a/sw/source/core/draw/dview.cxx +++ b/sw/source/core/draw/dview.cxx @@ -730,7 +730,7 @@ const SwFrm* SwDrawView::CalcAnchor() } else if ( !bFly ) { - const SwRect aRect( aPt.X(), aPt.Y(), 1, 1 ); + const SwRect aRect( aPt.getX(), aPt.getY(), 1, 1 ); SwDrawContact* pContact = (SwDrawContact*)GetUserCall(pObj); if ( pContact->GetAnchorFrm( pObj ) && |