summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>2011-09-21 10:02:58 +0200
committerCédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>2011-09-21 17:44:51 +0200
commitaaa34f74a639b8cf54d27d52b292f4d0ed0f1231 (patch)
tree76e439e6d60e6e9e7a6dfecc3a972738bc69b3b4 /sw/source
parent7a6ae7ff20a0b26a083c13649712635758797c15 (diff)
Page Break: Fix the line position in side-by-side pages display
Diffstat (limited to 'sw/source')
-rwxr-xr-xsw/source/core/layout/paintfrm.cxx4
1 files changed, 1 insertions, 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();