diff options
Diffstat (limited to 'sw/source/core/text/itrpaint.cxx')
-rw-r--r-- | sw/source/core/text/itrpaint.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/core/text/itrpaint.cxx b/sw/source/core/text/itrpaint.cxx index 8df27339a3e9..20c183064492 100644 --- a/sw/source/core/text/itrpaint.cxx +++ b/sw/source/core/text/itrpaint.cxx @@ -226,15 +226,15 @@ void SwTextPainter::DrawTextLine( const SwRect &rPaint, SwSaveClip &rClip, OutputDevice* pOut = GetInfo().GetOut(); Point aPnt1( nTmpLeft, GetInfo().GetPos().Y() ); if ( aPnt1.X() < rPaint.Left() ) - aPnt1.X() = rPaint.Left(); + aPnt1.setX( rPaint.Left() ); if ( aPnt1.Y() < rPaint.Top() ) - aPnt1.Y() = rPaint.Top(); + aPnt1.setY( rPaint.Top() ); Point aPnt2( GetInfo().GetPos().X() + nMaxRight - GetInfo().X(), GetInfo().GetPos().Y() + nTmpHeight ); if ( aPnt2.X() > rPaint.Right() ) - aPnt2.X() = rPaint.Right(); + aPnt2.setX( rPaint.Right() ); if ( aPnt2.Y() > rPaint.Bottom() ) - aPnt2.Y() = rPaint.Bottom(); + aPnt2.setY( rPaint.Bottom() ); const SwRect aLineRect( aPnt1, aPnt2 ); @@ -640,7 +640,7 @@ void SwTextPainter::CheckSpecialUnderline( const SwLinePortion* pPor, pUnderlineFnt->SetWeight( WEIGHT_NORMAL, nActual ); // common base line - aCommonBaseLine.Y() = nAdjustBaseLine + nMaxBaseLineOfst; + aCommonBaseLine.setY( nAdjustBaseLine + nMaxBaseLineOfst ); } } |