diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-21 10:13:03 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-21 12:58:49 +0100 |
commit | 180f2860525fb7ed4892b417b20c3f2f9cbb44e0 (patch) | |
tree | f4c11ab79c1ba022f31944668eae2f20a8f5c808 /sw/source/core/text/txtdrop.cxx | |
parent | b99dd5350c21ad4096af0ae281c518b127fa37b5 (diff) |
loplugin:changetoolsgen in sw
Change-Id: If07efe4c15cfc28df38a9327856d39313ca78d50
Reviewed-on: https://gerrit.libreoffice.org/50078
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/text/txtdrop.cxx')
-rw-r--r-- | sw/source/core/text/txtdrop.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/core/text/txtdrop.cxx b/sw/source/core/text/txtdrop.cxx index d6ffec0dc272..0f7cdc0ce42c 100644 --- a/sw/source/core/text/txtdrop.cxx +++ b/sw/source/core/text/txtdrop.cxx @@ -54,8 +54,8 @@ static bool lcl_IsDropFlyInter( const SwTextFormatInfo &rInf, { SwRect aRect( rInf.GetTextFrame()->getFrameArea().Pos(), Size( nWidth, nHeight) ); aRect.Pos() += rInf.GetTextFrame()->getFramePrintArea().Pos(); - aRect.Pos().X() += rInf.X(); - aRect.Pos().Y() = rInf.Y(); + aRect.Pos().AdjustX(rInf.X() ); + aRect.Pos().setY( rInf.Y() ); aRect = rTextFly.GetFrame( aRect ); return aRect.HasArea(); } @@ -621,10 +621,10 @@ void SwTextPainter::PaintDropPortion() } Point aLineOrigin( GetTopLeft() ); - aLineOrigin.X() += nX; + aLineOrigin.AdjustX(nX ); sal_uInt16 nTmpAscent, nTmpHeight; CalcAscentAndHeight( nTmpAscent, nTmpHeight ); - aLineOrigin.Y() += nTmpAscent; + aLineOrigin.AdjustY(nTmpAscent ); GetInfo().SetIdx( GetStart() ); GetInfo().SetPos( aLineOrigin ); GetInfo().SetLen( pDrop->GetLen() ); |