diff options
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/layout/tabfrm.cxx | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/sw/source/core/layout/tabfrm.cxx b/sw/source/core/layout/tabfrm.cxx index d5429472937d..00ac6a280a26 100644 --- a/sw/source/core/layout/tabfrm.cxx +++ b/sw/source/core/layout/tabfrm.cxx @@ -3088,12 +3088,15 @@ void SwTabFrm::_UpdateAttr( const SfxPoolItem *pOld, const SfxPoolItem *pNew, { rInvFlags |= 0x40; SwPageFrm *pPage = FindPageFrm(); - if ( !GetPrev() ) - CheckPageDescs( pPage ); - if ( pPage && GetFmt()->GetPageDesc().GetNumOffset() ) - ((SwRootFrm*)pPage->GetUpper())->SetVirtPageNum( true ); - SwDocPosUpdate aMsgHnt( pPage->Frm().Top() ); - GetFmt()->GetDoc()->UpdatePageFlds( &aMsgHnt ); + if (pPage) + { + if ( !GetPrev() ) + CheckPageDescs( pPage ); + if (GetFmt()->GetPageDesc().GetNumOffset()) + ((SwRootFrm*)pPage->GetUpper())->SetVirtPageNum( true ); + SwDocPosUpdate aMsgHnt( pPage->Frm().Top() ); + GetFmt()->GetDoc()->UpdatePageFlds( &aMsgHnt ); + } } break; |