diff options
Diffstat (limited to 'sw/source/core/layout/hffrm.cxx')
-rw-r--r-- | sw/source/core/layout/hffrm.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/layout/hffrm.cxx b/sw/source/core/layout/hffrm.cxx index c2d2a46718c6..437b8992a243 100644 --- a/sw/source/core/layout/hffrm.cxx +++ b/sw/source/core/layout/hffrm.cxx @@ -688,7 +688,7 @@ void SwPageFrame::PrepareHeader() if ( !pLay ) return; - const SwFormatHeader &rH = static_cast<SwFrameFormat*>(GetRegisteredIn())->GetHeader(); + const SwFormatHeader &rH = static_cast<SwFrameFormat*>(GetDep())->GetHeader(); const SwViewShell *pSh = getRootFrame()->GetCurrShell(); const bool bOn = !(pSh && (pSh->GetViewOptions()->getBrowseMode() || @@ -729,7 +729,7 @@ void SwPageFrame::PrepareFooter() if ( !pLay ) return; - const SwFormatFooter &rF = static_cast<SwFrameFormat*>(GetRegisteredIn())->GetFooter(); + const SwFormatFooter &rF = static_cast<SwFrameFormat*>(GetDep())->GetFooter(); while ( pLay->GetNext() ) pLay = static_cast<SwLayoutFrame*>(pLay->GetNext()); |