Kaydet (Commit) 94c772ad authored tarafından Michael Stahl's avatar Michael Stahl

fdo#70232: sw: brown paper-bag fix for header sharing mangling footers

Stupid copy/paste error in SwDoc::CopyMasterFooter() checks
IsHeaderShared().

(regression from e1a9a348)

Change-Id: I0c0bc16a8c581cd05ed206a0de79c7983204165b
üst f0c03edd
...@@ -258,7 +258,7 @@ void SwDoc::CopyMasterFooter(const SwPageDesc &rChged, const SwFmtFooter &rFoot, ...@@ -258,7 +258,7 @@ void SwDoc::CopyMasterFooter(const SwPageDesc &rChged, const SwFmtFooter &rFoot,
// The CntntIdx is _always_ different when called from // The CntntIdx is _always_ different when called from
// SwDocStyleSheet::SetItemSet, because it deep-copies the // SwDocStyleSheet::SetItemSet, because it deep-copies the
// PageDesc. So check if it was previously shared. // PageDesc. So check if it was previously shared.
((bLeft) ? pDesc->IsHeaderShared() : pDesc->IsFirstShared())) ((bLeft) ? pDesc->IsFooterShared() : pDesc->IsFirstShared()))
{ {
SwFrmFmt *pFmt = new SwFrmFmt( GetAttrPool(), (bLeft ? "Left footer" : "First footer"), SwFrmFmt *pFmt = new SwFrmFmt( GetAttrPool(), (bLeft ? "Left footer" : "First footer"),
GetDfltFrmFmt() ); GetDfltFrmFmt() );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment