diff options
author | Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr> | 2011-09-21 10:02:58 +0200 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr> | 2011-09-21 17:44:51 +0200 |
commit | aaa34f74a639b8cf54d27d52b292f4d0ed0f1231 (patch) | |
tree | 76e439e6d60e6e9e7a6dfecc3a972738bc69b3b4 /sw | |
parent | Page Break: decouple it from the text bounding lines painting (diff) | |
download | core-aaa34f74a639b8cf54d27d52b292f4d0ed0f1231.tar.gz core-aaa34f74a639b8cf54d27d52b292f4d0ed0f1231.zip |
Page Break: Fix the line position in side-by-side pages display
Diffstat (limited to 'sw')
-rwxr-xr-x | sw/source/core/layout/paintfrm.cxx | 4 |
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(); |