summaryrefslogtreecommitdiff
path: root/writerfilter
diff options
context:
space:
mode:
authorVasily Melenchuk <Vasily.Melenchuk@cib.de>2017-10-09 19:10:18 +0300
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2017-10-10 19:34:15 +0200
commit9c4d690b73b30aa144828935ad4e87eb13442d0c (patch)
tree93f86f9110b96c94590aad94da5ad8c18bbf94ca /writerfilter
parent47ec4332dde7a8b7a8abb188679e8b13481bd62f (diff)
tdf#90789: DOCX paragraphs in shapes like frames do not belong to section.
Change-Id: I60644bd62e2a2ac97a97f0a492b146dc69456cd6 Reviewed-on: https://gerrit.libreoffice.org/43291 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/source/dmapper/DomainMapper_Impl.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.cxx b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
index 029ab83ee36d..be16a2307eaf 100644
--- a/writerfilter/source/dmapper/DomainMapper_Impl.cxx
+++ b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
@@ -1292,10 +1292,10 @@ void DomainMapper_Impl::finishParagraph( const PropertyMapPtr& pPropertyMap )
SetIsPreviousParagraphFramed(false);
m_bParaChanged = false;
- 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;
+ if( !IsInHeaderFooter() && !IsInShape() && (!pParaContext || !pParaContext->IsFrameMode()) )
+ { // If the paragraph is in a frame, shape or header/footer, it's not a paragraph of the section itself.
+ SetIsFirstParagraphInSection(false);
+ SetIsLastParagraphInSection(false);
}
if (pParaContext)