summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/doc/doclay.cxx2
-rw-r--r--sw/source/core/text/xmldump.cxx6
2 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/core/doc/doclay.cxx b/sw/source/core/doc/doclay.cxx
index 5dbff900a0ea..2273fd70fac9 100644
--- a/sw/source/core/doc/doclay.cxx
+++ b/sw/source/core/doc/doclay.cxx
@@ -149,7 +149,7 @@ SwFrmFmt *SwDoc::MakeLayoutFmt( RndStdIds eRequest, const SfxItemSet* pSet )
case RND_STD_FOOTERR:
{
pFmt = new SwFrmFmt( GetAttrPool(),
- (bHeader ? "Header" : "Footer"),
+ (bHeader ? "Right header" : "Right footer"),
GetDfltFrmFmt() );
SwNodeIndex aTmpIdx( GetNodes().GetEndOfAutotext() );
diff --git a/sw/source/core/text/xmldump.cxx b/sw/source/core/text/xmldump.cxx
index 5818f20e21e2..6bcf2704ca36 100644
--- a/sw/source/core/text/xmldump.cxx
+++ b/sw/source/core/text/xmldump.cxx
@@ -368,10 +368,10 @@ void SwFrm::dumpAsXmlAttributes( xmlTextWriterPtr writer )
SwTxtNode *pTxtNode = pTxtFrm->GetTxtNode();
xmlTextWriterWriteFormatAttribute( writer, BAD_CAST( "txtNodeIndex" ), "%lu", pTxtNode->GetIndex() );
}
- if (IsHeaderFrm())
+ if (IsHeaderFrm() || IsFooterFrm())
{
- SwHeaderFrm *pHeaderFrm = (SwHeaderFrm*)this;
- rtl::OUString aFmtName = pHeaderFrm->GetFmt()->GetName();
+ SwHeadFootFrm *pHeadFootFrm = (SwHeadFootFrm*)this;
+ rtl::OUString aFmtName = pHeadFootFrm->GetFmt()->GetName();
xmlTextWriterWriteFormatAttribute( writer, BAD_CAST( "fmtName" ), "%s", BAD_CAST(rtl::OUStringToOString(aFmtName, RTL_TEXTENCODING_UTF8).getStr()));
}
}