summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>2011-08-30 18:44:05 +0200
committerCédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>2011-09-01 12:10:58 +0200
commitca2568e30a5a9154dc17bdc2efed4e2cf3027885 (patch)
tree38823d21d79ec9b539fad79c55fce9b86d68551a /sw
parent093087968725584087dda01801a5355c98591310 (diff)
fdo#40344: reverted commit 6f7bd9
The tweak had side effect and is now useless with the new way of painting the separators.
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/layout/layact.cxx20
1 files changed, 1 insertions, 19 deletions
diff --git a/sw/source/core/layout/layact.cxx b/sw/source/core/layout/layact.cxx
index aa1b56138286..70bfd1aeea2d 100644
--- a/sw/source/core/layout/layact.cxx
+++ b/sw/source/core/layout/layact.cxx
@@ -1790,25 +1790,7 @@ sal_Bool SwLayAction::FormatCntnt( const SwPageFrm *pPage )
const ViewShell *pSh = pRoot->GetCurrShell();
const sal_Bool bBrowse = pSh && pSh->GetViewOptions()->getBrowseMode();
- // Check if there is a footer frame and if it's in an invalid state.
- // In such a case, redraw the whole page to properly update the
- // header/footer decorators
- const SwFrm *pLay = pPage->Lower();
- bool bPaintWholePage = false;
-
- if ( pLay )
- {
- while ( pLay->GetNext() )
- pLay = pLay->GetNext();
-
- if ( pLay->IsFooterFrm() )
- {
- bPaintWholePage = true;
- pImp->GetShell()->AddPaintRect( pPage->Frm() );
- }
- }
-
- while ( !bPaintWholePage && pCntnt && pPage->IsAnLower( pCntnt ) )
+ while ( pCntnt && pPage->IsAnLower( pCntnt ) )
{
//Wenn der Cntnt sich eh nicht veraendert koennen wir ein paar
//Abkuerzungen nutzen.