diff options
author | Michael Stahl <mstahl@redhat.com> | 2012-04-15 15:28:50 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-04-16 16:14:16 +0200 |
commit | 1d5e263a129c56e561ce145bad9749027c583a75 (patch) | |
tree | ca32710164357642f8f06104dd8f69935f0cecd1 /sw | |
parent | 983c27402e151126c5bef6623eeb07f333456243 (diff) |
sw: create horizontal border lines with start left and end right
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/layout/paintfrm.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx index 9ad1a025d36d..ba22f6f8d0fb 100644 --- a/sw/source/core/layout/paintfrm.cxx +++ b/sw/source/core/layout/paintfrm.cxx @@ -4625,21 +4625,21 @@ void lcl_PaintTopBottomLine( const sal_Bool _bTop, if ( lcl_GetLineWidth( pTopBottomBorder ) > 0 ) { - double nExtentIS = lcl_GetExtent( pRightBorder, NULL ); - double nExtentIE = lcl_GetExtent( pLeftBorder, NULL ); - double nExtentOS = lcl_GetExtent( NULL, pRightBorder ); - double nExtentOE = lcl_GetExtent( NULL, pLeftBorder ); + double nExtentIS = lcl_GetExtent( NULL, pLeftBorder ); + double nExtentIE = lcl_GetExtent( NULL, pRightBorder ); + double nExtentOS = lcl_GetExtent( pLeftBorder, NULL ); + double nExtentOE = lcl_GetExtent( pRightBorder, NULL ); if ( !_bTop ) { - nExtentIS = lcl_GetExtent( NULL, pRightBorder ); - nExtentIE = lcl_GetExtent( NULL, pLeftBorder ); - nExtentOS = lcl_GetExtent( pRightBorder, NULL ); - nExtentOE = lcl_GetExtent( pLeftBorder, NULL ); + nExtentIS = lcl_GetExtent( pLeftBorder, NULL ); + nExtentIE = lcl_GetExtent( pRightBorder, NULL ); + nExtentOS = lcl_GetExtent( NULL, pLeftBorder ); + nExtentOE = lcl_GetExtent( NULL, pRightBorder ); } - basegfx::B2DPoint aStart( aRect.Right() - lcl_GetLineWidth( pRightBorder ) / 2.0, aRect.Top() + aRect.Height() / 2.0 ); - basegfx::B2DPoint aEnd( aRect.Left() + lcl_GetLineWidth( pLeftBorder ) / 2.0, aRect.Top() + aRect.Height() / 2.0 ); + basegfx::B2DPoint aStart( aRect.Left() + lcl_GetLineWidth( pLeftBorder ) / 2.0, aRect.Top() + aRect.Height() / 2.0 ); + basegfx::B2DPoint aEnd( aRect.Right() - lcl_GetLineWidth( pRightBorder ) / 2.0, aRect.Top() + aRect.Height() / 2.0 ); double nLeftWidth = !_bTop ? pTopBottomBorder->GetOutWidth() : pTopBottomBorder->GetInWidth( ); double nRightWidth = !_bTop ? pTopBottomBorder->GetInWidth() : pTopBottomBorder->GetOutWidth( ); |