From aaa34f74a639b8cf54d27d52b292f4d0ed0f1231 Mon Sep 17 00:00:00 2001 From: Cédric Bosdonnat Date: Wed, 21 Sep 2011 10:02:58 +0200 Subject: Page Break: Fix the line position in side-by-side pages display --- sw/source/core/layout/paintfrm.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx index a03701f62e60..5a1621a01931 100755 --- a/sw/source/core/layout/paintfrm.cxx +++ b/sw/source/core/layout/paintfrm.cxx @@ -3338,9 +3338,7 @@ void SwPageFrm::PaintBreak( ) const if ( pCnt && pCnt->IsPageBreak( sal_True ) ) { const SwPageFrm* pPageFrm = FindPageFrm(); - const SwPageFrm* pPrevPageFrm = static_cast< const SwPageFrm* >( pPageFrm->GetPrev() ); - - double nYLineOffset = double( pPageFrm->Frm().Top() + pPrevPageFrm->Frm().Bottom() ) / 2.0; + double nYLineOffset = double( pPageFrm->GetBoundRect().Top() + pPageFrm->Frm().Top() ) / 2.0; SwRect aRect = pPageFrm->GetBoundRect(); basegfx::BColor aColor = SwViewOption::GetPageBreakColor().getBColor(); -- cgit v1.2.3