summaryrefslogtreecommitdiff
path: root/writerfilter/source/rtftok/rtfdispatchdestination.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'writerfilter/source/rtftok/rtfdispatchdestination.cxx')
-rw-r--r--writerfilter/source/rtftok/rtfdispatchdestination.cxx24
1 files changed, 4 insertions, 20 deletions
diff --git a/writerfilter/source/rtftok/rtfdispatchdestination.cxx b/writerfilter/source/rtftok/rtfdispatchdestination.cxx
index 2aa635e13488..ed5748ab0c85 100644
--- a/writerfilter/source/rtftok/rtfdispatchdestination.cxx
+++ b/writerfilter/source/rtftok/rtfdispatchdestination.cxx
@@ -216,18 +216,10 @@ RTFError RTFDocumentImpl::dispatchDestination(RTFKeyword nKeyword)
}
break;
case RTF_HEADERL:
- if (!m_hasLHeader)
- {
- nId = NS_ooxml::LN_headerl;
- m_hasLHeader = true;
- }
+ nId = NS_ooxml::LN_headerl;
break;
case RTF_HEADERR:
- if (!m_hasRHeader)
- {
- nId = NS_ooxml::LN_headerr;
- m_hasRHeader = true;
- }
+ nId = NS_ooxml::LN_headerr;
break;
case RTF_HEADERF:
if (!m_hasFHeader)
@@ -237,18 +229,10 @@ RTFError RTFDocumentImpl::dispatchDestination(RTFKeyword nKeyword)
}
break;
case RTF_FOOTERL:
- if (!m_hasLFooter)
- {
- nId = NS_ooxml::LN_footerl;
- m_hasLFooter = true;
- }
+ nId = NS_ooxml::LN_footerl;
break;
case RTF_FOOTERR:
- if (!m_hasRFooter)
- {
- nId = NS_ooxml::LN_footerr;
- m_hasRFooter = true;
- }
+ nId = NS_ooxml::LN_footerr;
break;
case RTF_FOOTERF:
if (!m_hasFFooter)