[Libreoffice-commits] .: sw/source
Miklos Vajna
vmiklos at kemper.freedesktop.org
Wed Jul 4 07:58:29 PDT 2012
sw/source/filter/ww8/ww8par.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 08556bfd1346d96752e212cec68fe99726e03e90
Author: Miklos Vajna <vmiklos at suse.cz>
Date: Wed Jul 4 16:51:15 2012 +0200
wwSectionManager::SetUseOn: share first page header / footer by default
Change-Id: I4e0c605cfe4f906a9a0a45d49e89b990b64ade07
diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx
index e4f747b..bd84f5b 100644
--- a/sw/source/filter/ww8/ww8par.cxx
+++ b/sw/source/filter/ww8/ww8par.cxx
@@ -3774,7 +3774,7 @@ void wwSectionManager::SetUseOn(wwSection &rSection)
UseOnPage eUseBase = bMirror ? nsUseOnPage::PD_MIRROR : nsUseOnPage::PD_ALL;
UseOnPage eUse = eUseBase;
if (!bEven)
- eUse = (UseOnPage)(eUse | nsUseOnPage::PD_HEADERSHARE | nsUseOnPage::PD_FOOTERSHARE);
+ eUse = (UseOnPage)(eUse | nsUseOnPage::PD_HEADERSHARE | nsUseOnPage::PD_FOOTERSHARE | nsUseOnPage::PD_HEADERSHAREFIRST | nsUseOnPage::PD_FOOTERSHAREFIRST);
OSL_ENSURE(rSection.mpPage, "Makes no sense to call me with no pages to set");
if (rSection.mpPage)
@@ -3782,7 +3782,7 @@ void wwSectionManager::SetUseOn(wwSection &rSection)
if (rSection.mpTitlePage)
{
rSection.mpTitlePage->WriteUseOn(
- (UseOnPage) (eUseBase | nsUseOnPage::PD_HEADERSHARE | nsUseOnPage::PD_FOOTERSHARE));
+ (UseOnPage) (eUseBase | nsUseOnPage::PD_HEADERSHARE | nsUseOnPage::PD_FOOTERSHARE | nsUseOnPage::PD_HEADERSHAREFIRST | nsUseOnPage::PD_FOOTERSHAREFIRST));
}
}
More information about the Libreoffice-commits
mailing list