diff --git a/sw/source/core/layout/layact.cxx b/sw/source/core/layout/layact.cxx index aa1b561..a2ee91a 100644 --- a/sw/source/core/layout/layact.cxx +++ b/sw/source/core/layout/layact.cxx @@ -1794,7 +1794,6 @@ sal_Bool SwLayAction::FormatCntnt( const SwPageFrm *pPage ) // 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 ) { @@ -1802,13 +1801,10 @@ sal_Bool SwLayAction::FormatCntnt( const SwPageFrm *pPage ) 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.