diff options
author | Michael Stahl <mstahl@redhat.com> | 2016-10-05 23:09:25 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-10-05 23:51:08 +0200 |
commit | f933da55797566cf725e35ab0df17e91c7d5598f (patch) | |
tree | 84a86dffc19c70b62ea8b973b21f8ccae703d8c1 /sw/source | |
parent | 4e48432decd5c04c61bced9db71e866b54370ac3 (diff) |
tdf#103025 sw: don't format header/footer in SwPageFrame::PreparePage()
This has always been dead code because it used wrong constants
FRMTYPE_HEADER|FRMTYPE_FOOTER which is actually Page|Column and
SwPageFrame and SwColumnFrame are not direct children of SwPageFrame.
Then commit 901e5c3a21a1299d10c44bc844246fe8c329bb82 fixed the
constants but somehow the early formatting of header/footer results
in wrong expansion of variable text fields, so just remove this code.
Change-Id: I0af13168970f26355a1b247e071235166d08b7a4
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/layout/pagechg.cxx | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/sw/source/core/layout/pagechg.cxx b/sw/source/core/layout/pagechg.cxx index 50d910bae579..720a541631b8 100644 --- a/sw/source/core/layout/pagechg.cxx +++ b/sw/source/core/layout/pagechg.cxx @@ -467,22 +467,6 @@ void SwPageFrame::PreparePage( bool bFootnote ) if ( GetPrev() && static_cast<SwPageFrame*>(GetPrev())->IsEmptyPage() ) lcl_MakeObjs( *pDoc->GetSpzFrameFormats(), static_cast<SwPageFrame*>(GetPrev()) ); lcl_MakeObjs( *pDoc->GetSpzFrameFormats(), this ); - - // format footer/ header - SwLayoutFrame *pLow = static_cast<SwLayoutFrame*>(Lower()); - while ( pLow ) - { - if ( pLow->GetType() & (SwFrameType::Header|SwFrameType::Footer) ) - { - SwContentFrame *pContent = pLow->ContainsContent(); - while ( pContent && pLow->IsAnLower( pContent ) ) - { - pContent->OptCalc(); // not the predecessors - pContent = pContent->GetNextContentFrame(); - } - } - pLow = static_cast<SwLayoutFrame*>(pLow->GetNext()); - } } } |