summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-04-25 10:53:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-04-25 12:42:27 +0200
commita8e818392d9129f74e751e1db0278cc314722208 (patch)
treeecb75e66b431e46143fb769a5d42bdb747dddd34 /sw
parenta334e85a2f0885b0d931fe80c50c4b3d07af7dd5 (diff)
FOOTERL and FOOTERR are write-only
Change-Id: I65ed01d0bf10409282d9fe5087f5ea84cb084ddc Reviewed-on: https://gerrit.libreoffice.org/36932 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/doc/DocumentLayoutManager.cxx8
1 files changed, 1 insertions, 7 deletions
diff --git a/sw/source/core/doc/DocumentLayoutManager.cxx b/sw/source/core/doc/DocumentLayoutManager.cxx
index 55d0192c9775..7c3589a156dd 100644
--- a/sw/source/core/doc/DocumentLayoutManager.cxx
+++ b/sw/source/core/doc/DocumentLayoutManager.cxx
@@ -123,8 +123,6 @@ SwFrameFormat *DocumentLayoutManager::MakeLayoutFormat( RndStdIds eRequest, cons
SAL_FALLTHROUGH;
}
case RndStdIds::FOOTER:
- case RndStdIds::FOOTERL:
- case RndStdIds::FOOTERR:
{
pFormat = new SwFrameFormat( m_rDoc.GetAttrPool(),
(bHeader ? "Right header" : "Right footer"),
@@ -141,11 +139,7 @@ SwFrameFormat *DocumentLayoutManager::MakeLayoutFormat( RndStdIds eRequest, cons
: eRequest == RndStdIds::HEADERR
? RES_POOLCOLL_HEADERR
: RES_POOLCOLL_HEADER )
- : ( eRequest == RndStdIds::FOOTERL
- ? RES_POOLCOLL_FOOTERL
- : eRequest == RndStdIds::FOOTERR
- ? RES_POOLCOLL_FOOTERR
- : RES_POOLCOLL_FOOTER )
+ : RES_POOLCOLL_FOOTER
) ) );
pFormat->SetFormatAttr( SwFormatContent( pSttNd ));