summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-04-16 16:12:39 +0200
committerMichael Stahl <mstahl@redhat.com>2012-04-16 16:14:18 +0200
commit502c93143ef29989692ca3e63e3e6abc255fd53f (patch)
treec95279ced94356ecc6c0ab32eb4dd44448790b7e
parent0868a0155a2b57daf7b862d120aead0458372b17 (diff)
fdo#38635: fix border printing:
Apparently this special case in lcl_PaintLeftRightLine for printer output devices is no longer necessary with the new drawing layer borders and causes the vertical border lines to be far too short, leading to visible gaps in the PDF. (regression from 0f0896c26fb260d1bbf31d7a886df3f61837f0f2)
-rw-r--r--sw/source/core/layout/paintfrm.cxx67
1 files changed, 0 insertions, 67 deletions
diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx
index 1fbe09c5f8af..255cf146eee3 100644
--- a/sw/source/core/layout/paintfrm.cxx
+++ b/sw/source/core/layout/paintfrm.cxx
@@ -4595,73 +4595,6 @@ void lcl_PaintLeftRightLine( const sal_Bool _bLeft,
if ( _rAttrs.JoinedWithNext( _rFrm ) ) pBottomBorder = NULL;
}
- // OD 06.05.2003 #107169# - adjustments for printer output device
- if ( bPrtOutputDev )
- {
- // substract width of outer top line.
- if ( rBox.GetTop() && (!bCnt || _rAttrs.GetTopLine( _rFrm )) )
- {
- long nDist = ::lcl_AlignHeight( rBox.GetTop()->GetOutWidth() );
- (aRect.*_rRectFn->fnSubTop)( -nDist );
- // OD 19.05.2003 #109667# - If outer top line is hair line, calculated
- // top has to be adjusted.
- if ( nDist == 1 )
- {
- if ( _rFrm.IsVertical() )
- {
- // right of border rectangle has to be checked and adjusted
- Point aCompPt( aRect.Right(), 0 );
- Point aRefPt( aCompPt.X() + 1, aCompPt.Y() );
- lcl_CompPxPosAndAdjustPos( *(pGlobalShell->GetOut()),
- aRefPt, aCompPt,
- sal_True, -1 );
- aRect.Right( aCompPt.X() );
- }
- else
- {
- // top of border rectangle has to be checked and adjusted
- Point aCompPt( 0, aRect.Top() );
- Point aRefPt( aCompPt.X(), aCompPt.Y() - 1 );
- lcl_CompPxPosAndAdjustPos( *(pGlobalShell->GetOut()),
- aRefPt, aCompPt,
- sal_False, +1 );
- aRect.Top( aCompPt.Y() );
- }
- }
- }
- // substract width of outer bottom line.
- if ( rBox.GetBottom() && (!bCnt || _rAttrs.GetBottomLine( _rFrm )) )
- {
- long nDist = ::lcl_AlignHeight( rBox.GetBottom()->GetOutWidth());
- (aRect.*_rRectFn->fnAddBottom)( -nDist );
- // OD 19.05.2003 #109667# - If outer bottom line is hair line, calculated
- // top has to be adjusted.
- if ( nDist == 1 )
- {
- if ( _rFrm.IsVertical() )
- {
- // left of border rectangle has to be checked and adjusted
- Point aCompPt( aRect.Left(), 0 );
- Point aRefPt( aCompPt.X() - 1, aCompPt.Y() );
- lcl_CompPxPosAndAdjustPos( *(pGlobalShell->GetOut()),
- aRefPt, aCompPt,
- sal_True, +1 );
- aRect.Left( aCompPt.X() );
- }
- else
- {
- // bottom of border rectangle has to be checked and adjusted
- Point aCompPt( 0, aRect.Bottom() );
- Point aRefPt( aCompPt.X(), aCompPt.Y() + 1 );
- lcl_CompPxPosAndAdjustPos( *(pGlobalShell->GetOut()),
- aRefPt, aCompPt,
- sal_False, -1 );
- aRect.Bottom( aCompPt.Y() );
- }
- }
- }
- }
-
if ( !pLeftRightBorder->GetInWidth() )
{
// OD 06.05.2003 #107169# - add 6th parameter