summaryrefslogtreecommitdiff
path: root/writerfilter
diff options
context:
space:
mode:
authorJustin Luth <justin_luth@sil.org>2016-12-20 12:19:43 +0300
committerJustin Luth <justin_luth@sil.org>2016-12-22 06:13:29 +0000
commit7e38087bf2a4d9d9edd0c98f965531002e0be777 (patch)
treec7406dd026b3641b1a23104602eced324b0a2634 /writerfilter
parent51cb1ebcc46030ed9526d18a0e2e9279a4edf438 (diff)
related to tdf#97417: fix unit test page count
The unit test should have been showing a blank page before the content page. Non-section paragraphs should not remove the first/last status. Frames were already excluded, now this patch also excludes header/footer paragraphs. This is in preparation for tdf#104710. Change-Id: I686944843302160d6f6bbbcb73f01c836179aa9f Reviewed-on: https://gerrit.libreoffice.org/32234 Reviewed-by: Justin Luth <justin_luth@sil.org> Tested-by: Justin Luth <justin_luth@sil.org> (cherry picked from commit 893698741a78e56d74b87caff24f67742ddd892b) Reviewed-on: https://gerrit.libreoffice.org/32323 Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/source/dmapper/DomainMapper_Impl.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.cxx b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
index 12686345d9c2..013518f59e3a 100644
--- a/writerfilter/source/dmapper/DomainMapper_Impl.cxx
+++ b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
@@ -1210,8 +1210,8 @@ void DomainMapper_Impl::finishParagraph( const PropertyMapPtr& pPropertyMap )
SetIsPreviousParagraphFramed(false);
m_bParaChanged = false;
- if (!pParaContext || !pParaContext->IsFrameMode())
- { // If the paragraph is in a frame, it's not a paragraph of the section itself.
+ if( !IsInHeaderFooter() && (!pParaContext || !pParaContext->IsFrameMode()) )
+ { // If the paragraph is in a frame or header/footer, it's not a paragraph of the section itself.
m_bIsFirstParaInSection = false;
m_bIsLastParaInSection = false;
}