diff options
author | Noel Grandin <noel@peralex.com> | 2016-06-26 12:24:25 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-06-27 05:23:08 +0000 |
commit | f384ae4c81c2459f9955697ecc36412f7409b936 (patch) | |
tree | 4d11e57f82569e7970136a89b9c8bce6a47f8b5a /sw/source/core/text/txtdrop.cxx | |
parent | 19c3aac98f756f6a9cda44a4cc70a2a924fa85df (diff) |
loplugin:singlevalfields in sw(part3)
Change-Id: Ie971a1483f4fedda61c81a097399d3d562862891
Reviewed-on: https://gerrit.libreoffice.org/26677
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sw/source/core/text/txtdrop.cxx')
-rw-r--r-- | sw/source/core/text/txtdrop.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sw/source/core/text/txtdrop.cxx b/sw/source/core/text/txtdrop.cxx index 7dd7452c6217..b3ef2f1fa7fa 100644 --- a/sw/source/core/text/txtdrop.cxx +++ b/sw/source/core/text/txtdrop.cxx @@ -108,7 +108,6 @@ SwDropPortion::SwDropPortion( const sal_uInt16 nLineCnt, nDropDescent(nDrpDescent), nDistance(nDist), nFix(0), - nX(0), nY(0) { SetWhichPor( POR_DROP ); @@ -303,7 +302,7 @@ void SwDropPortion::PaintDrop( const SwTextPaintInfo &rInf ) const const SwTwips nOldPosY = rInf.Y(); const SwTwips nOldPosX = rInf.X(); const SwParaPortion *pPara = rInf.GetParaPortion(); - const Point aOutPos( nOldPosX + nX, nOldPosY - pPara->GetAscent() + const Point aOutPos( nOldPosX, nOldPosY - pPara->GetAscent() - pPara->GetRealHeight() + pPara->Height() ); // make good for retouching @@ -312,7 +311,6 @@ void SwDropPortion::PaintDrop( const SwTextPaintInfo &rInf ) const // for background const_cast<SwDropPortion*>(this)->Height( nDropHeight + nDropDescent ); - const_cast<SwDropPortion*>(this)->Width( Width() - nX ); const_cast<SwDropPortion*>(this)->SetAscent( nDropHeight ); // Always adapt Clipregion to us, never set it off using the existing ClipRect |